bazelbuild / rules_webtesting

Bazel rules to allow testing against a browser with WebDriver.
Apache License 2.0
97 stars 56 forks source link

Coverage support? #415

Open sgammon opened 3 years ago

sgammon commented 3 years ago

How would one accomplish this? Obviously JUnit/regular Java tests can already do this, and my goal is instrumenting my server-side code through rules_webtesting's Java rules. Would love to contribute upstream if others are interested

dapullar commented 3 years ago

I have the same questions about setting up coverage for the running karma tests (via jasmine) for JS.

Seems to work great under jasmine_node_test defined in rules_nodejs but I can't seem to figure out how to access COVERAGE_DIR & invoke the necessary lcov-merger to create the expected outputs using the web_test_suite