File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 172172 "command" : " ./build.sh" ,
173173 "args" : [
174174 " test" ,
175- " report" ,
175+ " -- report" ,
176176 " --debug" ,
177177 " --coverage" ,
178178 " --no-integration"
181181 "cwd" : " ${workspaceFolder}/linux/ibus-keyman/" ,
182182 },
183183 "group" : " build" ,
184- "detail" : " create unit test coverage"
184+ "detail" : " run tests and create unit test coverage report "
185185 },
186186 {
187187 "type" : " shell" ,
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ builder_describe \
1919 " test" \
2020 " install install artifacts" \
2121 " uninstall uninstall artifacts" \
22- " report create coverage report" \
2322 " @/core:arch" \
2423 " --no-integration don't run integration tests" \
24+ " --report create coverage report" \
2525 " --coverage capture test coverage"
2626
2727builder_parse " $@ "
@@ -76,6 +76,10 @@ if builder_start_action test; then
7676 else
7777 meson test --print-errorlogs $builder_verbose
7878 fi
79+ if builder_has_option --coverage; then
80+ # Note: requires lcov > 1.16 to properly work (see https://github.com/mesonbuild/meson/issues/6747)
81+ ninja coverage-html
82+ fi
7983 builder_finish_action success test
8084fi
8185
@@ -90,10 +94,3 @@ if builder_start_action uninstall; then
9094 ninja uninstall
9195 builder_finish_action success uninstall
9296fi
93-
94- if builder_start_action report; then
95- cd " $THIS_SCRIPT_PATH /$MESON_PATH "
96- # Note: requires lcov > 1.16 to properly work (see https://github.com/mesonbuild/meson/issues/6747)
97- ninja coverage-html
98- builder_finish_action success report
99- fi
You can’t perform that action at this time.
0 commit comments