diff --git a/docs/linux/README.md b/docs/linux/README.md index f76408f24b..354ee89531 100644 --- a/docs/linux/README.md +++ b/docs/linux/README.md @@ -98,7 +98,7 @@ Run `./build.sh --debug --coverage --report test` to create the report. There's also an index page (`linux/CodecoverageReports.html`) that links to all three reports. You can run -`linux/build.sh --debug --coverage --report --no-integration test` +`linux/build.sh --debug --coverage --report --open --no-integration test` to create the coverage reports for all three Linux projects and open the index page in the browser. diff --git a/linux/build.sh b/linux/build.sh index b98ff97ff8..9a4959c5d0 100755 --- a/linux/build.sh +++ b/linux/build.sh @@ -24,15 +24,16 @@ builder_describe \ "install install artifacts" \ "uninstall uninstall artifacts" \ "--no-integration+ don't run integration tests" \ + "--coverage+ capture test coverage" \ "--report+ create coverage report" \ - "--coverage+ capture test coverage" + "--open open the coverage reports in the browser" builder_parse "$@" builder_run_child_actions clean configure build test install uninstall test_action() { - if builder_has_option --report; then + if builder_has_option --open; then builder_echo "Opening coverage reports in browser..." xdg-open "file://${THIS_SCRIPT_PATH}/CodeCoverageReports.html" fi