mirror of
https://github.com/sstephenson/bats.git
synced 2026-02-25 09:18:10 +01:00
bats -c filename prints the number of tests in the file
This commit is contained in:
@@ -86,3 +86,13 @@ teardown() {
|
||||
[ "${lines[5]}" = " failure stdout 2" ]
|
||||
[ "${lines[7]}" = " failure stderr" ]
|
||||
}
|
||||
|
||||
@test "-c prints the number of tests" {
|
||||
run bats -c "$FIXTURE_ROOT/empty.bats"
|
||||
[ $status -eq 0 ]
|
||||
[ "$output" = "0" ]
|
||||
|
||||
run bats -c "$FIXTURE_ROOT/output.bats"
|
||||
[ $status -eq 0 ]
|
||||
[ "$output" = "4" ]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user