chore: Refactor scripts (code-coverage + test report)
Generalize the script by parsing bash arguments, allows:
- reuse of the script
- use different local and CI options, such as
--local_cpu_resources=2
in the CI environment
last generated artifacts: https://ci.eclipse.org/openpass/job/GtGenCore/view/change-requests/job/MR-47/1/artifact/
Code-coverage: https://ci.eclipse.org/openpass/job/GtGenCore/view/change-requests/job/MR-47/1/artifact/artifacts/_site/bazel-coverage/index.html
Edited by Xiao Pan