You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've implemented an acceptance test over bashunit and my test failed because I needed it to know the exit code of the test and added to my output, even when this information was not relevant.
function test_bashunit_should_allow_test_drive_development() {
local test_file=./tests/acceptance/fake_error_test.sh
fixture=$(printf "Running ./tests/acceptance/fake_error_test.sh
\e[31m✗ Failed\e[0m: Error tdd with error code 127
\e[2mTests: \e[0m \e[31m1 failed\e[0m, 1 total
\e[2mAssertions:\e[0m \e[31m0 failed\e[0m, 0 total")
echo "
#!/bin/bash
function test_error_tdd() { assert_that_will_never_exist \"1\" \"1\" ; }" > $test_file
set +e
assertContains "$fixture" "$(./bashunit "$test_file")"
assertGeneralError "$(./bashunit "$test_file")"
rm $test_file
}
This line should
\e[31m✗ Failed\e[0m: Error tdd with error code 127
should be:
\e[31m✗ Failed\e[0m: Error tdd
The text was updated successfully, but these errors were encountered:
I've implemented an acceptance test over bashunit and my test failed because I needed it to know the exit code of the test and added to my output, even when this information was not relevant.
This line should
should be:
The text was updated successfully, but these errors were encountered: