Skip to content

Commit 32cc0cd

Browse files
committed
fix: acceptance tests forcing not showing skipped and incomplete
1 parent b996cd3 commit 32cc0cd

7 files changed

Lines changed: 15 additions & 3 deletions

File tree

tests/acceptance/bashunit_summary_output_test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function test_incomplete_tests_not_displayed_without_flag() {
2323

2424
function test_skipped_tests_displayed_with_show_skipped_flag() {
2525
local output
26-
output=$(./bashunit --no-parallel --simple --show-skipped --env "$TEST_ENV_FILE" \
26+
output=$(./bashunit --env "$TEST_ENV_FILE" --no-parallel --simple --show-skipped \
2727
"tests/acceptance/bashunit_init_test.sh")
2828

2929
assert_contains "There was 1 skipped test:" "$output"
@@ -32,7 +32,7 @@ function test_skipped_tests_displayed_with_show_skipped_flag() {
3232

3333
function test_incomplete_tests_displayed_with_show_incomplete_flag() {
3434
local output
35-
output=$(./bashunit --no-parallel --simple --show-incomplete --env "$TEST_ENV_FILE" \
35+
output=$(./bashunit --env "$TEST_ENV_FILE" --no-parallel --simple --show-incomplete \
3636
"tests/acceptance/bashunit_execution_error_test.sh")
3737

3838
assert_contains "There was 1 incomplete test:" "$output"
@@ -41,7 +41,7 @@ function test_incomplete_tests_displayed_with_show_incomplete_flag() {
4141

4242
function test_both_flags_can_be_used_together() {
4343
local output
44-
output=$(./bashunit --no-parallel --simple --show-skipped --show-incomplete --env "$TEST_ENV_FILE" \
44+
output=$(./bashunit --env "$TEST_ENV_FILE" --no-parallel --simple --show-skipped --show-incomplete \
4545
"tests/acceptance/bashunit_fail_test.sh" "tests/acceptance/bashunit_init_test.sh")
4646

4747
assert_contains "incomplete test" "$output"

tests/acceptance/fixtures/.env.default

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ BASHUNIT_SIMPLE_OUTPUT=false
99
BASHUNIT_STOP_ON_FAILURE=false
1010
BASHUNIT_SHOW_EXECUTION_TIME=false
1111
BASHUNIT_VERBOSE=false
12+
BASHUNIT_SHOW_SKIPPED=false
13+
BASHUNIT_SHOW_INCOMPLETE=false

tests/acceptance/fixtures/.env.log_junit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ BASHUNIT_SIMPLE_OUTPUT=false
77
BASHUNIT_STOP_ON_FAILURE=false
88
BASHUNIT_SHOW_EXECUTION_TIME=false
99
BASHUNIT_VERBOSE=false
10+
BASHUNIT_SHOW_SKIPPED=false
11+
BASHUNIT_SHOW_INCOMPLETE=false

tests/acceptance/fixtures/.env.report_html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ BASHUNIT_SIMPLE_OUTPUT=false
88
BASHUNIT_STOP_ON_FAILURE=false
99
BASHUNIT_SHOW_EXECUTION_TIME=false
1010
BASHUNIT_VERBOSE=false
11+
BASHUNIT_SHOW_SKIPPED=false
12+
BASHUNIT_SHOW_INCOMPLETE=false

tests/acceptance/fixtures/.env.simple

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ BASHUNIT_SIMPLE_OUTPUT=true
66
BASHUNIT_STOP_ON_FAILURE=false
77
BASHUNIT_SHOW_EXECUTION_TIME=false
88
BASHUNIT_VERBOSE=false
9+
BASHUNIT_SHOW_SKIPPED=false
10+
BASHUNIT_SHOW_INCOMPLETE=false

tests/acceptance/fixtures/.env.stop_on_failure

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ BASHUNIT_SIMPLE_OUTPUT=false
66
BASHUNIT_STOP_ON_FAILURE=true
77
BASHUNIT_SHOW_EXECUTION_TIME=false
88
BASHUNIT_VERBOSE=false
9+
BASHUNIT_SHOW_SKIPPED=false
10+
BASHUNIT_SHOW_INCOMPLETE=false

tests/acceptance/fixtures/.env.with_path

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ BASHUNIT_SIMPLE_OUTPUT=false
66
BASHUNIT_STOP_ON_FAILURE=false
77
BASHUNIT_SHOW_EXECUTION_TIME=false
88
BASHUNIT_VERBOSE=false
9+
BASHUNIT_SHOW_SKIPPED=false
10+
BASHUNIT_SHOW_INCOMPLETE=false

0 commit comments

Comments
 (0)