Skip to content

Commit 6fa5626

Browse files
committed
fix: bashunit_lifecycle_output_test.sh
1 parent 9a728de commit 6fa5626

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/acceptance/bashunit_lifecycle_output_test.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ EOF
103103
}
104104

105105
function 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
}
121121
EOF
@@ -130,7 +130,7 @@ EOF
130130
}
131131

132132
function 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
}
148148
EOF
@@ -155,7 +155,7 @@ EOF
155155
}
156156

157157
function 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
}
173173
EOF
@@ -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
}
192192
EOF
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

Comments
 (0)