-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Test environment is ignored #475
Comments
Have you set RunMsCodeCoverage Yes ? |
Hello Tony, |
Can you provide all the steps you go through for the tests to be run in a Linux container. Have you done all the prequiisite remote Linux environment steps in https://learn.microsoft.com/en-us/visualstudio/test/remote-testing?view=vs-2022 ?
from https://learn.microsoft.com/en-us/visualstudio/test/remote-testing?view=vs-2022
FROM mcr.microsoft.com/dotnet/sdk:5.0 RUN wget https://aka.ms/getvsdbgsh && Is this necessary in your dockerfile ? |
You should use this in your test project when not using ms code coverage
|
Can you show what is written to the FCC Output Window Pane after running tests with RunMsCodeCoverage No ( with the UseDataCollector element added ) and with RunMsCodeCoverage Yes. |
I am not sure if Microsoft support coverage for remote testing - microsoft/codecoverage#132 |
I open the solution above (https://github.com/mdima/traceroute), I select as test environment "linux container", I run the tests.
Yes, I did.
I followed that instructions
If I add this to my dockerfile it reports an error (I also tried the following): |
With RunMsCodeCoverage No:
With RunMsCodeCoverage Yes:
|
Exactly, I am running Visual Studio Professional 2022 (Version 17.12.3) |
With RunMsCodeCoverage No FCC has no concept of docker. Have you run your tests in the docker Linux environment outside of Visual Studio ? If so please provide the details. FCC would need to get a file from Linux to Windows. Is that possible ? As for RunMsCodeCoverage Yes. |
Also the examples from https://learn.microsoft.com/en-us/visualstudio/test/remote-testing?view=vs-2022
|
Installed product versions
Description
The test environment is ignored during the coverage tests
Steps to recreate
Current behavior
The tests are performed in the "Local Windows Environment"
Expected behavior
The tests are performed in the "linux container" environment
Side Notes
If you debug some of the tests above, you will see that some of the tests are performed during the test execution, but their lines are reported as not covered by FCC.
The text was updated successfully, but these errors were encountered: