-
Notifications
You must be signed in to change notification settings - Fork 255
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
Code coverage extensions fails in single file application #3758
Comments
@jakubch1 I suppose this is not supported at the moment right? |
Anyway for AOT you can try this one https://github.com/microsoft/codecoverage/blob/main/samples/Algorithms/scenarios/scenario05/README.md we need to do instrumentation at build time in that case. |
If not supported maybe it can just write a warning and not run? At the moment it completely crashes the test run, and I'm not even using any coverage flags. Just by referencing the package it breaks things. |
@thomhurst could you please provide simple project with this issue and commands you run? I was not able to reproduce. |
@jakubch1 Here you go: https://github.com/thomhurst/TestPlatformSingleFileCoverageExceptionRepro Run |
Issue was fixed in version 17.12.3. If you additionally reference https://www.nuget.org/packages/Microsoft.CodeCoverage.MSBuild/17.12.3 and publish with flag: |
I'm testing/trialing my framework in AOT / SingleFile modes.
I've noticed that the code coverage extension breaks running your test suite in single file mode with the following exception:
I'm also not actively using an coverage CLI flags, so just having the package installed seems to break things.
Command:
When I'm building as a Single File application, these are the properties I'm setting:
AB#2242022
The text was updated successfully, but these errors were encountered: