question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"VS Test" task hangs after the tests execution in release definition

See original GitHub issue

Environment

  • VSTS: (I will provide the needed information on demand)
  • Agent
    • Private
    • OS: Windows_NT (10.0.14393)
    • Version: 2.123.0

Issue Description

When I run functional tests with the Visual Studio Test task, it is unable to finish and hangs indefinitely if I don’t set a timeout (currently 2 minutes), even if I receive the usual test summary:

2017-10-10T18:45:32.7372445Z Results File: c:\1\r2\a\TestResults\montybuilduser_monty-bld 2017-10-10 18_44_57.trx
2017-10-10T18:45:32.7392447Z 
2017-10-10T18:45:32.7392447Z Total tests: 7. Passed: 4. Failed: 3. Skipped: 0.
2017-10-10T18:45:32.7392447Z Test Run Failed.
2017-10-10T18:45:32.7392447Z Test execution time: 49.4539 Seconds

Notes:

  • I’m running my tests with the TestAdapterPath set to “.” to be able to run the tests with xUnit.
  • The tests are run by using Google Chrome in headless mode (Chrome is installed/updated through chocolatey on the private agent in the release definition).

Error logs

I don’t have any error logs when the final summary shows up 😞

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
acesiddhucommented, Feb 6, 2018

you can close WebDriver instance and Dispose it off

Webdriver.Close() Webdriver.Dispose()

1reaction
MJLHThomassencommented, Jun 18, 2018

Same problem here. Not using ChromeDriver in my project. All tests pass, the test report is written, but the task hangs. Is there any way to debug which other processes might possibly not be properly closing down?

Read more comments on GitHub >

github_iconTop Results From Across the Web

"VS Test" task hangs after the tests execution in release ...
Issue Description. When I run functional tests with the Visual Studio Test task, it is unable to finish and hangs indefinitely if I...
Read more >
VSTest task hangs after all the tests passed
Running VSTest with release pipeline test plan, tests does not include WebTest, but UI test is included. This is normal log from release:...
Read more >
All Specflow scenarios being skipped in VSTest task on ...
I've configured a DevOps pipeline to execute my SpecFlow Selenium tests. Everything appears to work fine, except that all my test scenarios ...
Read more >
PublishTestResults@2 - Publish Test Results v2 task
This task publishes test results to Azure Pipelines or TFS when tests are executed to provide a comprehensive test reporting and analytics ...
Read more >
NET analysis causes VStest to hang - Sonar Community
When running x64 unit tests with VStest task, according to the logs all the tests run and pass, but the VStest task hangs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found