Skip to content

Commit 611ed4c

Browse files
committed
[CI]: Swap the python code coverage report with the cpp report (sonic-net#544)
Change to show CPP code full coverage, make the coverage rate the same as it displayed in the coverage page.
1 parent c5ed58a commit 611ed4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.azure-pipelines/build-template.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ jobs:
7777
7878
./tests/tests
7979
redis-cli FLUSHALL
80-
pytest
80+
pytest --cov=. --cov-report=xml
81+
mv coverage.xml tests/coverage.xml
82+
gcovr -r ./ -e ".*/swsscommon_wrap.cpp" --exclude-unreachable-branches --exclude-throw-branches -x --xml-pretty -o coverage.xml
8183
displayName: "Run swss common unit tests"
8284
- publish: $(System.DefaultWorkingDirectory)/
8385
artifact: ${{ parameters.artifact_name }}

0 commit comments

Comments
 (0)