This is a Monorepo for https://www.enbnt.dev blog post examples, which uses Bazel to build and test all artifacts.
This project is an example Finatra project, which illustrates some of the built-in distributed trace annotation testing utilities. See the Distributed Tracing and Testing blog post for a deeper look into this project.
To generate a code coverage report (requires lcov
and genhtml
to be installed):
$ bazel coverage --cache_test_results=no\
--combined_report=lcov \
--coverage_report_generator="@bazel_tools//tools/test/CoverageOutputGenerator/java/com/google/devtools/coverageoutputgenerator:Main" \
--instrumentation_filter="-/src/test/scala[/:]" \
//...
$ genhtml --output genhtml "$(bazel info output_path)/_coverage/_coverage_report.dat"
$ open genhtml/index.html