File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,9 @@ jobs:
124
124
set -ex
125
125
make check
126
126
gcovr --version
127
- gcovr -r ./ -e ".+/saimetadata.c" -e ".+/json.hpp" -e "swss/.+" --exclude-unreachable-branches --exclude-throw-branches -x -o coverage.xml
127
+ gcovr -r ./ -e ".+/saimetadata.c" -e ".+/json.hpp" -e "swss/.+" -e ".*/.libs/.*" -e ".*/debian/.*" --exclude-unreachable-branches --exclude-throw-branches -x -o coverage.xml
128
+ mkdir -p htmlcov
129
+ gcovr -r ./ -e ".+/saimetadata.c" -e ".+/json.hpp" -e "swss/.+" -e ".*/.libs/.*" -e ".*/debian/.*" -e ".+/OidIndexGenerator.h" --exclude-unreachable-branches --exclude-throw-branches --html --html-details -o htmlcov/index.html
128
130
displayName: "Run sonic sairedis unit tests"
129
131
- publish : $(System.DefaultWorkingDirectory)/
130
132
artifact : ${{ parameters.artifact_name }}
@@ -142,6 +144,7 @@ jobs:
142
144
inputs :
143
145
codeCoverageTool : Cobertura
144
146
summaryFileLocation : ' $(System.DefaultWorkingDirectory)/coverage.xml'
147
+ reportDirectory : ' $(System.DefaultWorkingDirectory)/htmlcov/'
145
148
displayName : ' Publish test coverage'
146
149
- script : |
147
150
pwd
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ stages:
27
27
artifact_name : sonic-sairedis
28
28
syslog_artifact_name : sonic-sairedis.syslog
29
29
run_unit_test : true
30
+ archive_gcov : true
30
31
31
32
- stage : BuildArm
32
33
dependsOn : Build
You can’t perform that action at this time.
0 commit comments