-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #389 from TypedDevs/fix/381-multiple-errors-displa…
…y-lines Fix display multiline errors within the same test
- Loading branch information
Showing
6 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
tests/acceptance/fixtures/test_bashunit_with_multiple_failing_tests.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
function test_assert_same() { | ||
assert_same 1 1 | ||
} | ||
|
||
function test_assert_failing() { | ||
assert_same 1 2 | ||
assert_same 3 4 | ||
} | ||
|
||
function test_assert_todo_and_skip() { | ||
todo "foo" | ||
skip "bar" | ||
} | ||
|
||
function test_assert_skip_and_todo() { | ||
skip "baz" | ||
todo "yei" | ||
} |
27 changes: 27 additions & 0 deletions
27
...ptance/snapshots/bashunit_fail_test_sh.test_bashunit_with_multiple_failing_tests.snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[1mRunning ./tests/acceptance/fixtures/test_bashunit_with_multiple_failing_tests.sh[0m | ||
[32m✓ Passed[0m: Assert same | ||
[31m✗ Failed[0m: Assert failing | ||
[2mExpected[0m [1m'1'[0m | ||
[2mbut got [0m [1m'2'[0m | ||
[31m✗ Failed[0m: Assert failing | ||
[2mExpected[0m [1m'3'[0m | ||
[2mbut got [0m [1m'4'[0m | ||
[36m✒ Incomplete[0m: Assert todo and skip[2m foo[0m | ||
[33m↷ Skipped[0m: Assert todo and skip[2m bar[0m | ||
[33m↷ Skipped[0m: Assert skip and todo[2m baz[0m | ||
[36m✒ Incomplete[0m: Assert skip and todo[2m yei[0m | ||
|
||
[1mThere was 1 failure:[0m | ||
|
||
|1) ./tests/acceptance/fixtures/test_bashunit_with_multiple_failing_tests.sh | ||
|[31m✗ Failed[0m: Assert failing | ||
| [2mExpected[0m [1m'1'[0m | ||
| [2mbut got [0m [1m'2'[0m | ||
|[31m✗ Failed[0m: Assert failing | ||
| [2mExpected[0m [1m'3'[0m | ||
| [2mbut got [0m [1m'4'[0m | ||
|
||
[2mTests: [0m [32m1 passed[0m, [33m0 skipped[0m, [36m2 incomplete[0m, [31m1 failed[0m, 4 total | ||
[2mAssertions:[0m [32m1 passed[0m, [33m2 skipped[0m, [36m2 incomplete[0m, [31m2 failed[0m, 7 total | ||
|
||
[41m[30m[1m Some tests failed [0m |