Skip to content

Commit 1c15947

Browse files
committed
test: Add go-coverage to coverage includes
Should've been part of #155.
1 parent abe6a54 commit 1c15947

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scripts/test

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
# Passes all arguments through to `@go.bats_main` from `lib/bats-main`.
2727
_test_main() {
2828
local _GO_BATS_COVERAGE_INCLUDE
29-
_GO_BATS_COVERAGE_INCLUDE=('go' 'go-core.bash' 'lib/' 'libexec/' 'scripts/')
29+
_GO_BATS_COVERAGE_INCLUDE=('go' 'go-core.bash' 'go-template'
30+
'lib/' 'libexec/' 'scripts/')
3031
local _GO_COVERALLS_URL='https://coveralls.io/github/mbland/go-script-bash'
3132

3233
. "$_GO_USE_MODULES" 'bats-main'

tests/test.bats

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ write_bats_dummy_stub_kcov_lib_and_copy_test_script() {
118118
local expected_kcov_args=(
119119
'tests/kcov'
120120
'tests/coverage'
121-
'go,go-core.bash,lib/,libexec/,scripts/'
121+
'go,go-core.bash,go-template,lib/,libexec/,scripts/'
122122
'/tmp/,tests/bats/'
123123
'https://coveralls.io/github/mbland/go-script-bash'
124124
"$TEST_GO_SCRIPT"

0 commit comments

Comments
 (0)