Skip to content

Code coverage reporting using popular tools does not work with Aspire.Hosting.Testing #8499

@hwoodiwiss

Description

@hwoodiwiss

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

When using Aspire.Hosting.Testing to run integration tests, and using coverlet.msbuild we had no coverage reported for our tests, regardless of what code they exercised. This reduces the value of the tests that otherwise provide a great amount of value by exercising our system front-to-back.

Describe the solution you'd like

It would be useful if coverage tooling that already exists would just work ™, however I appreciate that given how different running an application in Aspire/DistributedApplicationFactory is from something like WebApplicationFactory, that may be unworkable.

I think whatever the solution, it will require some collaboration with the maintainers of coverage tooling.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-app-testingIssues pertaining to the APIs in Aspire.Hosting.Testing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions