File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ use nix
139
139
140
140
- [ shellcheck] ( https://github.com/koalaman/shellcheck )
141
141
- [ shfmt] ( https://github.com/mvdan/sh )
142
+ - [ bats] ( https://github.com/bats-core/bats-core )
142
143
143
144
## Lua
144
145
Original file line number Diff line number Diff line change 605
605
] ;
606
606
entry = "${ tools . shellcheck } /bin/shellcheck" ;
607
607
} ;
608
+ bats =
609
+ {
610
+ name = "bats" ;
611
+ description = "Run bash unit tests." ;
612
+ types = [ "shell" ] ;
613
+ types_or = [ "bats" "bash" ] ;
614
+ entry = "${ tools . bats } /bin/bats -p" ;
615
+ } ;
608
616
stylua =
609
617
{
610
618
name = "stylua" ;
Original file line number Diff line number Diff line change 33
33
, runCommand
34
34
, rustfmt
35
35
, shellcheck
36
+ , bats
36
37
, shfmt
37
38
, statix
38
39
, stylish-haskell
69
70
latexindent = tex ;
70
71
chktex = tex ;
71
72
commitizen = commitizen . overrideAttrs ( _ : _ : { doCheck = false ; } ) ;
73
+ bats = if bats ? withLibraries then ( bats . withLibraries ( p : [ p . bats-support p . bats-assert p . bats-file ] ) ) else bats ;
72
74
}
You can’t perform that action at this time.
0 commit comments