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

Tests that call Environment.FailFast do not fail immediately... #1183

Closed
KevinH-MS opened this issue Oct 9, 2017 · 1 comment
Closed

Tests that call Environment.FailFast do not fail immediately... #1183

KevinH-MS opened this issue Oct 9, 2017 · 1 comment
Assignees

Comments

@KevinH-MS
Copy link
Contributor

KevinH-MS commented Oct 9, 2017

Description

Tests that call Environment.FailFast do not fail immediately...

Steps to reproduce

Create a new Unit Test Project
Add a simple test method
Turn on Live Unit Testing
See the test run and pass
Add Environment.FailFast("test") to the test method

Expected behavior

Test should fail immediately and report a "not run" or "failed" result.

Actual behavior

Test times out after ~30 seconds with:

System.IO.IOException: Unable to communicate with test host process.
   at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.TestRequestSender.TryReceiveRawMessage()
   at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.TestRequestSender.ListenAndReportTestResults(ITestRunEventsHandler testRunEventsHandler)

Diagnostic logs

Please share test platform diagnostics logs. Instructions to collect logs are here.
The logs may contain test assembly paths, kindly review and mask those before sharing.

Environment

Please share additional details about the test environment.
Operating system, Build version of vstest.console

@smadala
Copy link
Contributor

smadala commented Jan 5, 2018

Fixed in 8d8d744

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants