File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
13
- helm bumped to ` 3.14.4 `
14
14
- helmfile bumped to ` 0.167.1 `
15
15
- ` build_docs ` now takes a fourth parameter, the version of node to use to build the docs
16
+ - ` send_coverage_to_cc ` now takes a second parameter, the prefix to add to files in coverage report
16
17
17
18
### Fixed
18
19
Original file line number Diff line number Diff line change @@ -250,9 +250,11 @@ install_cc_test_reporter() {
250
250
251
251
# Sends test coverage to code climate
252
252
# Arg1: code climate identifier for authentication
253
+ # Arg2: prefix to use when using format-coverage (can be empty)
253
254
send_coverage_to_cc () {
254
255
local CC_TEST_REPORTER_ID=$1
255
- ~ /.local/bin/cc-test-reporter format-coverage -t lcov coverage/lcov.info
256
+ local CC_PREFIX=${2:- }
257
+ ~ /.local/bin/cc-test-reporter format-coverage -t lcov --add-prefix " $CC_PREFIX " coverage/lcov.info
256
258
~ /.local/bin/cc-test-reporter upload-coverage -r " $CC_TEST_REPORTER_ID "
257
259
}
258
260
@@ -1266,7 +1268,7 @@ run_app_tests() {
1266
1268
# #
1267
1269
1268
1270
if [ " $CODE_COVERAGE " = true ]; then
1269
- send_coverage_to_cc " $CC_TEST_REPORTER_ID "
1271
+ send_coverage_to_cc " $CC_TEST_REPORTER_ID " " api "
1270
1272
fi
1271
1273
1272
1274
popd
You can’t perform that action at this time.
0 commit comments