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

Colors don't update for multiple test projects #181

Closed
andreluizsecco opened this issue Feb 7, 2019 · 4 comments
Closed

Colors don't update for multiple test projects #181

andreluizsecco opened this issue Feb 7, 2019 · 4 comments

Comments

@andreluizsecco
Copy link

If I run all the tests (multiple test projects), the colors are not being updated for all projects, see the image below:

image

Any suggestions to solve this?

@andreluizsecco andreluizsecco changed the title Colors don't update for all test projects Colors don't update for multiple test projects Feb 7, 2019
@stefanforsberg
Copy link
Collaborator

Hmm, a bit hard to figure out without having more information. Can you reproduce it on something small and share the code?

@andreluizsecco
Copy link
Author

andreluizsecco commented Feb 12, 2019

Yes! See: https://github.com/andreluizsecco/VSCodeTestExplorer

In this repository, I created 3 test projects with one test method each.
I Added 3 images that illustrate the problem. (Before run, First Run, Refresh Test Explorer)

Note: I'm running tests on the root (All projects)

@stefanforsberg
Copy link
Collaborator

Ah ok, at the moment you need to configure test explorer with having multiple test projects. The "documentation" for that is here, and for your example project a testProjectPath of "**/Test*.csproj" would work.

The reason for this is that when logging the test results only the last test project results are written to the file we view for test results which is why only one project shows up in the tree. Apparently this is perhaps changing in a coming version of the test adapter, I'll keep this issue open and keep this link here to track the issue further.

microsoft/vstest#1877

@andreluizsecco
Copy link
Author

It worked for me!
Great, thank you!

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