Skip to content

Commit

Permalink
Remove SWIG generated files from coverage report (#542)
Browse files Browse the repository at this point in the history
The files swsscommon_wrap.cpp is generated by swig, which are long files and the coverage is relative low. Remove them from the coverage report.
  • Loading branch information
qiluo-msft authored Oct 21, 2021
1 parent 4f5da5a commit b50e27a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .azure-pipelines/build-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
./tests/tests
redis-cli FLUSHALL
pytest --cov=. --cov-report=xml
gcovr -r ./ --exclude-unreachable-branches --exclude-throw-branches -x --xml-pretty -o tests/coverage.xml
gcovr -r ./ -e ".*/swsscommon_wrap.cpp" --exclude-unreachable-branches --exclude-throw-branches -x --xml-pretty -o tests/coverage.xml
displayName: "Run swss common unit tests"
- publish: $(System.DefaultWorkingDirectory)/
artifact: ${{ parameters.artifact_name }}
Expand Down

0 comments on commit b50e27a

Please sign in to comment.