Skip to content
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 Adapter does not pick up test host process stopped/exited (debug scenario) #370

Closed
nietras opened this issue Feb 14, 2018 · 1 comment

Comments

@nietras
Copy link

nietras commented Feb 14, 2018

Description

Since I am pretty sure this https://developercommunity.visualstudio.com/content/problem/173039/stopping-a-test-is-very-slow.html is a problem with the test adapter, since it only occurs with that. I am filing this here anyway.

Steps to reproduce

  • Create a .NET Core MSTest project e.g. targetting net471.
  • Add a unit test.
  • Set a breakpoint in the test.
  • Debug Selected Unit Test from Visual Studio (yes I know, but try doing that from command prompt...)
  • Stop debugging from VS by stopping debug directly.
  • Test adapter hangs for timeout.

Expected behavior

Detect test host process exited, and abort test immediately, do not hang for several seconds.

Actual behavior

Hangs for several seconds with following message:

[2018-02-14 13:18:36 Error] The active test run was aborted. Reason: Unable to communicate with test host process.

Environment

Windows 10 Fall Creators Update x64
VS2017 15.5.5
MSTest.TestAdapter 1.2.0
MSTest.TestFramework 1.2.0
Microsoft.NET.Test.Sdk 15.5.0

@smadala
Copy link
Contributor

smadala commented Feb 14, 2018

Thanks for filling issue.
This got fixed in VS 15.6. Feel free to reopen this issue if you observe same behavior in latest 15.6 preview or RTM(Yet to release).

@smadala smadala closed this as completed Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants