coverlet icon indicating copy to clipboard operation
coverlet copied to clipboard

Compatibility with Aspire.Hosting.Testing

Open ArcadeMode opened this issue 5 months ago • 0 comments

When using the coverlet.msbuild package in combination with Apire.Hosting.Testing for integration testing, the code coverage does not seem to work.

I think this might be related to Aspire starting one or multiple subprocesses where the system under test is running, while the coverage collector probably listens to the process where aspire is running. (my understanding of coverlet is rudimentary, so I could be completely off).

This is also being discussed in https://github.com/dotnet/aspire/issues/8499

Now i'd like to see this resolved but am unsure how. Is it possible to get the integration with Aspire working from the coverlet side? Or should it be resolved from the Aspire side? Maybe both require changes?

Would love your input on this, so we can get coverage reporting working when testing with Aspire.

ArcadeMode avatar Jun 16 '25 09:06 ArcadeMode