Skip to content

Commit 3d8b8ec

Browse files
committed
test: add shellcheck directive and use explicit coverage paths
- Add SC2034 disable for environment variables used by bashunit - Use explicit BASHUNIT_COVERAGE_PATHS="src/" instead of relying on fallback
1 parent fddd252 commit 3d8b8ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/acceptance/coverage_hooks_test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
2+
# shellcheck disable=SC2034
23

34
function set_up_before_script() {
45
TEST_ENV_FILE="tests/acceptance/fixtures/.env.default"
@@ -8,7 +9,7 @@ function set_up_before_script() {
89
function test_coverage_includes_src_hits_from_setup_hook() {
910
# Enable coverage in-process and exercise code in a hook-like context
1011
BASHUNIT_COVERAGE=true
11-
BASHUNIT_COVERAGE_PATHS="" # force auto-discovery / fallback
12+
BASHUNIT_COVERAGE_PATHS="src/"
1213
bashunit::coverage::init
1314

1415
# Simulate hook execution with coverage trap enabled

0 commit comments

Comments
 (0)