Skip to content

Commit cdd8f02

Browse files
committed
fix: test_bashunit_when_log_junit
1 parent bdef235 commit cdd8f02

4 files changed

Lines changed: 18 additions & 14 deletions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SHOW_HEADER=false
22
HEADER_ASCII_ART=false
33
SIMPLE_OUTPUT=false
4-
STOP_ON_FAILURE=true
4+
STOP_ON_FAILURE=false
55
SHOW_EXECUTION_TIME=false
66
DEFAULT_PATH=
77
LOG_JUNIT=log-junit.xml
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
22

3-
function test_a() {
3+
function test_success() {
44
assert_equals 1 1
55
}
66

7-
function test_b() {
8-
assert_equals 2 2
7+
function test_failure() {
8+
assert_equals 2 3
99
}
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
Running ./tests/acceptance/fixtures/test_bashunit_when_log_junit.sh
2-
✓ Passed: A
3-
✓ Passed: B
2+
✓ Passed: Success
3+
✗ Failed: Failure
4+
Expected '2'
5+
but got '3'
46

5-
Tests:  2 passed, 2 total
6-
Assertions: 2 passed, 2 total
7+
Tests:  1 passed, 1 failed, 2 total
8+
Assertions: 1 passed, 1 failed, 2 total
79

8-
 All tests passed 
10+
 Some tests failed 
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
Running ./tests/acceptance/fixtures/test_bashunit_when_log_junit.sh
2-
✓ Passed: A
3-
✓ Passed: B
2+
✓ Passed: Success
3+
✗ Failed: Failure
4+
Expected '2'
5+
but got '3'
46

5-
Tests:  2 passed, 2 total
6-
Assertions: 2 passed, 2 total
7+
Tests:  1 passed, 1 failed, 2 total
8+
Assertions: 1 passed, 1 failed, 2 total
79

8-
 All tests passed 
10+
 Some tests failed 

0 commit comments

Comments
 (0)