mirror of
https://github.com/sstephenson/bats.git
synced 2025-03-03 15:29:52 +01:00
Reword skipped test fixtures for clarity
Separate "skip" from the test name (description) to be distinct from "skip" as part of the TAP Directive.
This commit is contained in:
parent
6cd61bf9da
commit
d1f9165ba0
|
@ -57,8 +57,8 @@ fixtures bats
|
|||
[ $status -eq 0 ]
|
||||
[ "${lines[0]}" = "1..3" ]
|
||||
[ "${lines[1]}" = "ok 1 a passing test" ]
|
||||
[ "${lines[2]}" = "ok 2 a skipping test # skip" ]
|
||||
[ "${lines[3]}" = "ok 3 skip test with a reason # skip for a really good reason" ]
|
||||
[ "${lines[2]}" = "ok 2 a skipped test with no reason # skip" ]
|
||||
[ "${lines[3]}" = "ok 3 a skipped test with a reason # skip for a really good reason" ]
|
||||
}
|
||||
|
||||
@test "summary passing and failing tests" {
|
||||
|
|
4
test/fixtures/bats/passing_and_skipping.bats
vendored
4
test/fixtures/bats/passing_and_skipping.bats
vendored
|
@ -2,10 +2,10 @@
|
|||
true
|
||||
}
|
||||
|
||||
@test "a skipping test" {
|
||||
@test "a skipped test with no reason" {
|
||||
skip
|
||||
}
|
||||
|
||||
@test "skip test with a reason" {
|
||||
@test "a skipped test with a reason" {
|
||||
skip "for a really good reason"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user