-
Notifications
You must be signed in to change notification settings - Fork 325
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
1187 add support for xplat vstest console in translationlayer #1893
1187 add support for xplat vstest console in translationlayer #1893
Conversation
…TestConsoleWrapper
src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/VsTestConsoleProcessManager.cs
Show resolved
Hide resolved
src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/VsTestConsoleProcessManager.cs
Outdated
Show resolved
Hide resolved
A bunch of tests are failing because the number of processes(dotnet) being spawned is changing, can you please give me access to your branch. I'll help you fix these tests. |
I believe I created this PR with change permissions for reviewers enabled, so you should have access to my branch. |
Correct acceptance tests
…vstest_console_in_translationlayer vstest.console.dll is picked from debug\netcoreapp folder.
…vstest_console_in_translationlayer Fix Tranlation layer tests
…n_translationlayer
…vstest_console_in_translationlayer Fix Azure pipeline
test/Microsoft.TestPlatform.TestUtilities/IntegrationTestBase.cs
Outdated
Show resolved
Hide resolved
test/Microsoft.TestPlatform.TestUtilities/IntegrationTestBase.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/VsTestConsoleProcessManager.cs
Show resolved
Hide resolved
src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/VsTestConsoleProcessManager.cs
Show resolved
Hide resolved
using Microsoft.VisualStudio.TestPlatform.ObjectModel; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.Globalization; | ||
|
||
/// <summary> | ||
/// Vstest.console.exe process manager | ||
/// Vstest.console process manager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would have loved to see some unit tests for this class.
src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/VsTestConsoleProcessManager.cs
Outdated
Show resolved
Hide resolved
…vstest_console_in_translationlayer PR Comments
…vstest_console_in_translationlayer Fix
Is there anything more I should do for this PR to be merged? |
@Mobrockers , I'll push the PR, once my colleague has gone through. |
@mayankbansal018 I am seeing some weird results using a nuget package created from this branch. vstest.console.dll fails to start (I see the dotnet.exe process for vstest.console.dll start up then immediately shut down) when connecting from the nuget package (uploaded to my own myget feed). When I was testing using the dll's itself referenced in my test project it worked as expected. I have the packages Microsoft.TestPlatform.TranslationLayer and Microsoft.TestPlatform.ObjectModel which contain the changes from this branch uploaded here: https://www.myget.org/feed/Packages/stryker-mutator-integrationtest They do not work in my POC. When the dll's on my local system are referenced as assemblies through visual studio it does work. Any idea why? |
@Mobrockers can you make sure you have dotnet core 2.0 installed when you are trying? Also I could be access that feed. |
@mayankbansal018 I have dotnet core 2.0 installed. I believe you should be able to access that feed, as it is public. |
@Mobrockers can you also share instructions on how can try our your scenario? |
Checkout: https://github.com/stryker-mutator/stryker-net/tree/183-vstest-integration
Now if you start a debug run, my project should start using vstest.console.dll and it will not work. If I then do the following, it does work for me
Add assembly references to Microsoft.TestPlatform.ObjectModel.dll and Microsoft.TestPlatform.TranslationLayer.dll built locally from this PR. Now it vstest.console.dll successfully starts up and runs tests on my machine. |
@Mobrockers can you please drop a mail to maban at microsoft dot com. I'll set up a meeting with you to diagnose this issue. |
…n_translationlayer
…vstest_console_in_translationlayer 1187 add support for xpat vstest console in translationlayer
@mayankbansal018 Is it possible to give an indication of when a new (preview) nuget package can be release with these changes? |
@Mobrockers we recently release a package last week itself, so most likely our next release will be 2 weeks from now. |
@mayankbansal018 Thank you for your help :) |
Description
With this PR it will be possible to use the translationlayer with vstest.console.dll instead of only with vstest.console.exe. I have also removed all test logic from the unit tests that determined vstest.console.dll was not supported. I have successfully used the translationlayer dll resulting from this change to start unit tests against a dotnet core project using vstest.console.dll from the portable nuget package.
However, I have not been able to get all unit tests working yet. The vstest.console.dll used in the acceptance tests seems to be invalid (compared to the one in the portable nuget package). I get this error message:
I would appreciate assistance with fixing this before this PR can be merged.
Related issue
Fixes #1887