Skip to content

Commit

Permalink
feat: display test number only when not running in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Oct 13, 2024
1 parent 219f426 commit 58a3407
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,12 @@ function runner::write_failure_result_output() {
local test_file=$1
local error_msg=$2

echo -e "$(state::get_tests_failed)) $test_file\n$error_msg" >> "$FAILURES_OUTPUT_PATH"
local test_nr="*"
if ! parallel::is_enabled; then
test_nr=$(state::get_tests_failed)
fi

echo -e "$test_nr) $test_file\n$error_msg" >> "$FAILURES_OUTPUT_PATH"
}

function runner::run_set_up() {
Expand Down

0 comments on commit 58a3407

Please sign in to comment.