We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89b4043 commit 58bce46Copy full SHA for 58bce46
1 file changed
.github/workflows/compilation_on_android_ubuntu.yml
@@ -366,10 +366,14 @@ jobs:
366
367
- name: Build and run unit tests
368
run: |
369
- mkdir build && cd build
370
- cmake .. -DWAMR_BUILD_TARGET=${{ matrix.build_target }}
371
- cmake --build . --config Release --parallel 4
372
- ctest
+ rm -rf build
+ cmake -S . -B build -DWAMR_BUILD_TARGET=${{ matrix.build_target }} -DCOLLECT_CODE_COVERAGE=1
+ cmake --build build --config Release --parallel 4
+ ctest --test-dir build --output-on-failure
373
+
374
+ lcov --capture --directory build --output-file coverage.all.info
375
+ lcov --extract coverage.all.info "*/core/iwasm/*" "*/core/shared/*" --output-file coverage.info
376
+ lcov --summary coverage.info
377
working-directory: tests/unit
378
379
build_regression_tests:
0 commit comments