forked from nrfconnect/sdk-sidewalk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update tests to show coverage Signed-off-by: Robert Gałat <[email protected]>
- Loading branch information
1 parent
0fa2a80
commit 58c646d
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,7 +125,7 @@ jobs: | |
- name: Twister build and run x86 tests | ||
run: | | ||
source zephyr/zephyr-env.sh | ||
west twister --platform native_posix --platform unit_testing --coverage --enable-ubsan --enable-lsan --enable-asan --testsuite-root sidewalk --inline-logs --overflow-as-errors -vvv | ||
west twister --platform native_posix --platform unit_testing --coverage --coverage-basedir sidewalk --coverage-formats html,xml --enable-ubsan --enable-lsan --enable-asan --testsuite-root sidewalk --inline-logs --overflow-as-errors -vvv | ||
- name: Upload test results | ||
uses: actions/upload-artifact@v4 | ||
|
@@ -136,6 +136,20 @@ jobs: | |
twister-out/twister.xml | ||
twister-out/**/handler.log | ||
twister-out/**/device.log | ||
twister-out/coverage | ||
- name: Code Coverage Summary Report | ||
uses: irongut/[email protected] | ||
with: | ||
filename: 'twister-out/coverage/coverage.xml' | ||
badge: true | ||
format: 'markdown' | ||
output: 'both' | ||
|
||
- name: publish coverage summary | ||
run: | | ||
cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY | ||
build-and-test_on_hw: | ||
strategy: | ||
|