Skip to content

No coverage report found after executing tests #1354

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

Closed
smadala opened this issue Jan 2, 2018 · 0 comments
Closed

No coverage report found after executing tests #1354

smadala opened this issue Jan 2, 2018 · 0 comments
Assignees
Labels

Comments

@smadala
Copy link
Contributor

smadala commented Jan 2, 2018

Description

  • Test run failing with following error in std err
"Object reference not set to an instance of an object.
Test Run Failed."

This is observed in cloudbuild exchange queues.

Steps to reproduce

  • Enable code coverage for with multiple vstest.console instances in parallel.
  • If time taken to start datacollector.exe more than 5 sec. tests fail with following error.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.SocketCommunicationManager.ReceiveMessage()
   at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.DataCollection.DataCollectionRequestSender.SendBeforeTestRunStartAndGetResult(String settingsXml, ITestMessageEventHandler runEventsHandler)
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.DataCollection.ProxyDataCollectionManager.<>c__DisplayClass13_0.<BeforeTestRunStart>b__0()
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.DataCollection.ProxyDataCollectionManager.InvokeDataCollectionServiceAction(Action action, ITestMessageEventHandler runEventsHandler) Test Run Failed

Expected behavior

Code coverage should generate without any error.

Actual behavior

"Object reference not set to an instance of an object.
Test Run Failed."

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

No branches or pull requests

2 participants