From 4d686a86255ebdb81cb2cf79a7fd1e538fdf85dd Mon Sep 17 00:00:00 2001 From: Chemaclass Date: Fri, 6 Dec 2024 11:29:07 +0100 Subject: [PATCH] test: bashunit_when_stop_on_failure_env_simple_output --- .../acceptance/bashunit_stop_on_failure_test.sh | 6 ------ ...n_stop_on_failure_env_simple_output.snapshot | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 tests/acceptance/snapshots/bashunit_stop_on_failure_test_sh.test_bashunit_when_stop_on_failure_env_simple_output.snapshot diff --git a/tests/acceptance/bashunit_stop_on_failure_test.sh b/tests/acceptance/bashunit_stop_on_failure_test.sh index fa24ab32..3fee238b 100644 --- a/tests/acceptance/bashunit_stop_on_failure_test.sh +++ b/tests/acceptance/bashunit_stop_on_failure_test.sh @@ -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)" } diff --git a/tests/acceptance/snapshots/bashunit_stop_on_failure_test_sh.test_bashunit_when_stop_on_failure_env_simple_output.snapshot b/tests/acceptance/snapshots/bashunit_stop_on_failure_test_sh.test_bashunit_when_stop_on_failure_env_simple_output.snapshot new file mode 100644 index 00000000..bccd2609 --- /dev/null +++ b/tests/acceptance/snapshots/bashunit_stop_on_failure_test_sh.test_bashunit_when_stop_on_failure_env_simple_output.snapshot @@ -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