103103}
104104
105105function test_hook_visibility_shows_running_message_in_normal_mode() {
106- local test_file=" $TEST_DIR /test_hook_visibility .sh"
106+ local test_file=" $TEST_DIR /test_hook_visibility_normal .sh"
107107 cat > " $test_file " << 'EOF '
108108#!/usr/bin/env bash
109109
@@ -115,7 +115,7 @@ function tear_down_after_script() {
115115 true
116116}
117117
118- function test_dummy () {
118+ function test_hook_normal_mode () {
119119 assert_same "foo" "foo"
120120}
121121EOF
130130}
131131
132132function test_hook_visibility_suppressed_in_failures_only_mode() {
133- local test_file=" $TEST_DIR /test_hook_visibility .sh"
133+ local test_file=" $TEST_DIR /test_hook_visibility_failures .sh"
134134 cat > " $test_file " << 'EOF '
135135#!/usr/bin/env bash
136136
@@ -142,7 +142,7 @@ function tear_down_after_script() {
142142 true
143143}
144144
145- function test_dummy () {
145+ function test_hook_failures_only () {
146146 assert_same "foo" "foo"
147147}
148148EOF
155155}
156156
157157function test_hook_visibility_abbreviated_in_simple_mode() {
158- local test_file=" $TEST_DIR /test_hook_visibility .sh"
158+ local test_file=" $TEST_DIR /test_hook_visibility_simple .sh"
159159 cat > " $test_file " << 'EOF '
160160#!/usr/bin/env bash
161161
@@ -167,7 +167,7 @@ function tear_down_after_script() {
167167 true
168168}
169169
170- function test_dummy () {
170+ function test_hook_simple_mode () {
171171 assert_same "foo" "foo"
172172}
173173EOF
@@ -186,13 +186,13 @@ function test_hook_visibility_not_shown_when_hooks_not_defined() {
186186 cat > " $test_file " << 'EOF '
187187#!/usr/bin/env bash
188188
189- function test_dummy () {
189+ function test_no_hooks_defined () {
190190 assert_same "foo" "foo"
191191}
192192EOF
193193
194194 local output
195- output=$( ./bashunit " $test_file " 2>&1 )
195+ output=$( BASHUNIT_SIMPLE_OUTPUT=false BASHUNIT_PARALLEL_RUN=false ./bashunit " $test_file " 2>&1 )
196196
197197 assert_not_contains " Running set_up_before_script" " $output "
198198 assert_not_contains " Running tear_down_after_script" " $output "
0 commit comments