mirror of
https://github.com/sstephenson/bats.git
synced 2024-12-26 14:39:46 +01:00
Don't need duplicate tests for skip
This commit is contained in:
parent
8873aab79f
commit
b0606bc8cd
|
@ -111,19 +111,7 @@ fixtures bats
|
||||||
[ $status -eq 0 ]
|
[ $status -eq 0 ]
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "a skipped test" {
|
@test "skipped tests" {
|
||||||
skip
|
|
||||||
run bats
|
|
||||||
[ $status -eq 0 ]
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "a skipped test with a reason" {
|
|
||||||
skip "a reason for skipping"
|
|
||||||
run bats
|
|
||||||
[ $status -eq 0 ]
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "skipped test output" {
|
|
||||||
run bats "$FIXTURE_ROOT/skipped.bats"
|
run bats "$FIXTURE_ROOT/skipped.bats"
|
||||||
[ $status -eq 0 ]
|
[ $status -eq 0 ]
|
||||||
[ "${lines[1]}" = "ok 1 # skip a skipped test" ]
|
[ "${lines[1]}" = "ok 1 # skip a skipped test" ]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user