1
0
mirror of https://github.com/sstephenson/bats.git synced 2024-11-17 03:32:27 +01:00

Shorten test names

This commit is contained in:
Sam Stephenson 2011-12-28 17:12:17 -06:00
parent b9cfa7470c
commit 4a71d77813

6
test/bats.bats Normal file → Executable file
View File

@ -2,19 +2,19 @@
FIXTURE_ROOT="$BATS_TEST_DIRNAME/fixtures"
@test "running 'bats' with no arguments prints usage instructions" {
@test "no arguments prints usage instructions" {
run bats
[[ $status -eq 1 ]]
[[ $output =~ ^usage: ]]
}
@test "running 'bats' with an invalid filename prints an error" {
@test "invalid filename prints an error" {
run bats nonexistent
[[ $status -eq 1 ]]
[[ $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"
[[ $status -eq 0 ]]
[[ $output = "1..0" ]]