1
0
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:
Jason Grosz 2017-10-02 14:39:27 -05:00
parent 6cd61bf9da
commit d1f9165ba0
2 changed files with 4 additions and 4 deletions

View File

@ -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" {

View File

@ -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"
}