File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ set -euo pipefail
4+
5+ show_test_executable_path () {
6+ local base_path=" .build/debug/WasmKitPackageTests.xctest"
7+ if [ -f " $base_path " ]; then
8+ echo " $base_path "
9+ else
10+ echo " $base_path /Contents/MacOS/WasmKitPackageTests"
11+ fi
12+ }
13+
314build_coverage_html () {
4- llvm-cov show --format=html .build/debug/WasmKitPackageTests.xctest/Contents/MacOS/WasmKitPackageTests --instr-profile .build/debug/codecov/default.profdata -o " $1 " --sources $( find Sources/ -type f)
15+ llvm-cov show --format=html " $( show_test_executable_path ) " --instr-profile .build/debug/codecov/default.profdata -o " $1 " --sources $( find Sources -type f)
516}
617
718mkdir -p ./.build/html
819build_coverage_html ./.build/html/coverage
20+
21+ echo " Coverage report has been generated in ./.build/html/coverage"
You can’t perform that action at this time.
0 commit comments