-
Notifications
You must be signed in to change notification settings - Fork 194
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
testcase in report for dotnet framework #2458
Comments
Interestingly, VS does report those information properly. I tried altering the discovery options but failed so far. In short, VS IDE identifies the test adapter using a different strategy than VsTest, and VsTest does not like having different versions for the same test runner. |
I have soem bad news, I am afraid. While digging into VsTest code, I ran into this page: https://github.com/microsoft/vstest-docs/blob/main/RFCs/0010-Source-Information-For-Discovered-Tests.md It explains that when VsTest can not resolve source information thanks to Roslyn, the VS Test Explorer then digs into PDB files. |
@dupdob it doesn't explicitly list however that roslyn cannot be used for dotnet framework. It only differentiates between managed and unmanaged test projects. I'm not convinced dotnet framework test projects would be called unmanaged in this context, but if that's the case I would rather just not support test discovery on dotnet framework 🤷 |
Granted, I may have jumped to conclusions here. But, this matches so much what we experience, that it looks like a fair assumption |
Is your feature request related to a problem? Please describe.
With #1850 we will be able to display test files in the json and html report. We will also be able to display testcases and which mutants they cover for dotnet (core). For dotnet framework we can't yet extract the testcases. This is because the
CodeFilePath
is null, so we can't match the testcase back to the testfile it belongs to.See
ProjectMutator.EnrichTestProjectsWithTestInfo
We should figure out how to get this information so dotnet framework unit tests are also visible in the report.
The text was updated successfully, but these errors were encountered: