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.

No tests shown in tree

See original GitHub issue

I have set dotnet-test-explorer.testProjectPath. The test explorer window still says

Please open or set the test project and ensure your project compiles.

The project compiles, the Run All Tests button works (and discovers tests), and the output file is written to the specificd path. The Refresh button doesn’t seem to do anything.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
TFTomSuncommented, Jul 16, 2018

@stefanforsberg Thanks for the hint. The workaround solved the issue for me.

For everybody who come across this thread:

  • Go to C:\Program Files\dotnet\sdk<sdkVersion>
  • move all language folders (e.g. cs, de, en, es, … zh-*) to a subfolder
  • Start Visual Studio code
  • Refresh the test explorer -> the tests are shown now
1reaction
bmccordcommented, Apr 23, 2019

I just found the cause for it happening on my machine. I had a “Path For Result File” set, but the specified folder didn’t exist on one of my projects. That caused the “Discovering Tests” to just spin forever. I took out the Path, restarted, and tests were found quickly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Test tree disappears from Test Explorer window, once I run ...
I have this weird behaviour in VS 2022, that once the tests are run in the Test Explorer window, the whole test tree...
Read more >
Test cases missing to appear in Test Plan tree while trying to ...
Hi, When trying to drag the test cases from the test plan to Test lab module, the Test Plan tree not showing the...
Read more >
"No tests were found" and no tree view of tests in test runner ...
Tests were running and in the tests' ouput stream the tests results were shown (number of passed and failed tests etc., see image)....
Read more >
Tree Testing 101 - Comprehensive Guide - Optimal Workshop
Our comprehensive tree testing 101 explains everything you need to know in order to set up and run a tree test using ......
Read more >
How to retrieve the list of tests | Test Framework - Unity - Manual
It is possible to use the TestRunnerApi to retrieve the test tree for a given test mode (Edit Mode or Play Mode). You...
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