-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Demonstrate how to gather code coverage for web tests #931
Comments
Unfortunately there are no updates in bazel coverage land and there is no future work planned at this time. For this particular use case I can recommend using aspects to collect the transitive source files. An aspect can be attached to |
Thanks for replying! But if |
Thanks @alexeagle. The test runner creates |
We'd also like to apply the same coverage stratergy for nodejs test coverage, only it uses a slightly different instrumentation method, but transforms are easy. @iirina I don't know if we need those variables exposed to skylark, although im sure we'll need them there eventually, but just having them avilable to the program being instrumented I think would get us there. If you could take a quick look over: https://github.com/bazelbuild/rules_nodejs/pull/1135/files |
@alexeagle / @iirina with the release of bazel 2.1.0 and the associated coverage fixes, could i give this issue a bump? just like the poster on SO says, i've got it to a point where i can run coverage and generate lcov reports. i just need to figure out where to put the report so i can trigger it being merged with the combined report |
@Toxicable thank you!! i'll take a look |
This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs in two weeks. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs! |
This issue was automatically closed because it went two weeks without a reply since it was labeled "Can Close?" |
Hi, ts_web_test_suite( And I'm running this command to find the coverage report using lcov. But the _coverage_report.dat file generated here is empty. Can anyone help with this? |
Should serve to answer https://stackoverflow.com/questions/56556944/how-to-measure-coverage-when-running-typescript-tests-using-karma-and-bazel and also probably will reproduce the issues described there.
The text was updated successfully, but these errors were encountered: