"VS Test" task hangs after the tests execution in release definition
See original GitHub issueEnvironment
- 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:
- Created 6 years ago
- Comments:11 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
you can close WebDriver instance and Dispose it off
Webdriver.Close() Webdriver.Dispose()
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?