Aspire Integration tests & code coverage collection #7036
Unanswered
Ievgen Aleikin (ealeykin)
asked this question in
Q&A
Replies: 4 comments 2 replies
|
I suppose because Aspire executes referenced projects with Are there any workarounds to this issue ? |
2 replies
|
I don't think there's a way this will can supported at the moment without changes, so I've raised a feature request here, 🤞🏼 it gets looked at. |
0 replies
|
Fun fact, Aspire docs about Write your first test does have coverlet.collector package referenced, but still only collect coverage from AppHost https://aspire.dev/testing/write-your-first-test/?testing-framework=xunit
|
0 replies
|
For those in search of a solution I have shared an alternative way to get code coverage working when testing with Aspire: #8499 (comment) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Hi,
Having a Test project setup on top of DistributedApplicationTestingBuilder - is it possible to collect code coverage?
Out of the box I'm getting 0% reported for the Application project with 'Code Coverage' or 'XPlat Code Coverage'. Any specific steps/configuration to follow ?
All reactions