mirror of
https://github.com/sstephenson/bats.git
synced 2024-11-17 11:42:33 +01:00
Shorten test names
This commit is contained in:
parent
b9cfa7470c
commit
4a71d77813
6
test/bats.bats
Normal file → Executable file
6
test/bats.bats
Normal file → Executable file
|
@ -2,19 +2,19 @@
|
||||||
|
|
||||||
FIXTURE_ROOT="$BATS_TEST_DIRNAME/fixtures"
|
FIXTURE_ROOT="$BATS_TEST_DIRNAME/fixtures"
|
||||||
|
|
||||||
@test "running 'bats' with no arguments prints usage instructions" {
|
@test "no arguments prints usage instructions" {
|
||||||
run bats
|
run bats
|
||||||
[[ $status -eq 1 ]]
|
[[ $status -eq 1 ]]
|
||||||
[[ $output =~ ^usage: ]]
|
[[ $output =~ ^usage: ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "running 'bats' with an invalid filename prints an error" {
|
@test "invalid filename prints an error" {
|
||||||
run bats nonexistent
|
run bats nonexistent
|
||||||
[[ $status -eq 1 ]]
|
[[ $status -eq 1 ]]
|
||||||
[[ $output =~ does\ not\ exist ]]
|
[[ $output =~ does\ not\ exist ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "running 'bats' with an empty test file runs zero tests" {
|
@test "empty test file runs zero tests" {
|
||||||
run bats "$FIXTURE_ROOT/empty.bats"
|
run bats "$FIXTURE_ROOT/empty.bats"
|
||||||
[[ $status -eq 0 ]]
|
[[ $status -eq 0 ]]
|
||||||
[[ $output = "1..0" ]]
|
[[ $output = "1..0" ]]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user