coverage icon indicating copy to clipboard operation
coverage copied to clipboard

How to run coverage for multiple packages in a mono_repo

Open dcharkes opened this issue 1 year ago • 1 comments

Sometimes I want to gather coverage for multiple packages in a mono_repo.

I tried to be smart, and run things in parallel, but that doesn't work:

$ (cd ../native_assets_cli/ && dart pub global run coverage:test_with_coverage) & (cd ../native_assets_builder/ && dart pub global run coverage:test_with_coverage) & (cd ../native_toolchain_c/ && dart pub global run coverage:test_with_coverage) && wait
[1] 88093
[2] 88094
The Dart VM service is listening on http://127.0.0.1:8181/
Could not start the VM service: localhost:8181 is already in use.
Could not start the VM service: localhost:8181 is already in use.

Maybe there is a better way to gather coverage for multiple packages.

dcharkes avatar Feb 16 '24 11:02 dcharkes