Skip to content

Commit

Permalink
test: bashunit_when_stop_on_failure_env_simple_output
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Dec 6, 2024
1 parent dcef37e commit 4d686a8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/acceptance/bashunit_stop_on_failure_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,8 @@ function test_different_snapshots_matches() {
}

function test_bashunit_when_stop_on_failure_env_simple_output() {
todo "Should print something like .F"
return

# shellcheck disable=SC2317
local test_file=./tests/acceptance/fixtures/test_bashunit_when_stop_on_failure.sh

# shellcheck disable=SC2317
assert_match_snapshot "$(./bashunit --no-parallel --env "$TEST_ENV_FILE_STOP_ON_FAILURE" "$test_file" --simple)"
# shellcheck disable=SC2317
assert_general_error "$(./bashunit --no-parallel --env "$TEST_ENV_FILE_STOP_ON_FAILURE" "$test_file" --simple)"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.F
Stop on failure enabled...


There was 1 failure:

|1) ./tests/acceptance/fixtures/test_bashunit_when_stop_on_failure.sh
|✗ Failed: B error
| Expected '1'
| but got  '2'



Tests:  1 passed, 1 failed, 2 total
Assertions: 3 passed, 1 failed, 4 total

 Some tests failed 

0 comments on commit 4d686a8

Please sign in to comment.