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.

Test explorer does not display tests after update

See original GitHub issue

After the last update on 9-11 I get an error popup from the bottom right of visual studio code that says “container[title].push is not a function”. This happens every time I press the refresh button. Below is a log output of the test discovery which all seems fine.

Starting extension Finding projects for pattern /Users/cmorris/Dev/Science/UnitTestsNetCore/UnitTests.csproj Found 1 matches for pattern Evaluating match /Users/cmorris/Dev/Science/UnitTestsNetCore/UnitTests.csproj Adding directory /Users/cmorris/Dev/Science/UnitTestsNetCore Executing dotnet test -t -v=q in /Users/cmorris/Dev/Science/UnitTestsNetCore Executing dotnet vstest "/Users/cmorris/Dev/Science/UnitTestsNetCore/bin/Debug/netcoreapp2.1/UnitTests.dll" /ListFullyQualifiedTests /ListTestsTargetPath:"/var/folders/_r/7hzckl0x1f9_93ywbm_sx4c40000gq/T/test-explorer-discover-v8ULrG/output.txt" in /Users/cmorris/Dev/Science/UnitTestsNetCore Discoverd tests with nunit. Found 3334 in 1 directories

Extension Info: .Net Core Test Explorer 0.5.3 (2018-09-11) VSCode Info: Version 1.27.2 (1.27.2)

screen shot 2018-09-14 at 9 13 11 am

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:20

github_iconTop GitHub Comments

2reactions
stefanforsbergcommented, Sep 17, 2018

@cmorris98 @TrevorVonSeggern @dchw

Looks like this is an actual bug in vstest (https://github.com/Microsoft/vstest/pull/1677). Our extension previously hid this error but now we don’t anymore (to be able to support named test fixtures).

Until this fix in vstest is shipped what we can do is to not blow up the whole extension when this error occur. That will mean that these tests does not show up in the tree but the other ones will. I’m not sure that’s a good enough state for you guys in the meantime but it’s the best we can do.

1reaction
stefanforsbergcommented, Sep 26, 2018

@cmorris98 Yes, we changes so failure to parse one test does not break the tree. If you’re still using nunit you will still hit the bug I mentioned (https://github.com/formulahendry/vscode-dotnet-test-explorer/issues/145#issuecomment-422093742) but it should just affect tests that suffers from that bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Test Explorer not discoverying test methods
In code explorer select the test that hasn't run and run it (Right click - Run Selected Test). Confirm it passses.Immediately after attempt...
Read more >
Why is the Visual Studio 2015/2017/2019 Test Runner not ...
If you're having problems discovering or running tests, you may be a victim of a corrupted runner cache inside Visual Studio. To clear...
Read more >
Run unit tests with Test Explorer - Visual Studio (Windows)
When you build the test project, the tests appear in Test Explorer. If Test Explorer is not visible, choose Test on the Visual...
Read more >
How to resolve cases of Visual Studio “No tests appearing”
The Visual Studio Test Explorer can be a bit picky about showing tests. There are multiple reasons for why they don't always show...
Read more >
Topic: Tests not showing up in the Test Explorer
If you have a test project, add a NuGet reference to a test adapter corresponding to the test framework used in order to...
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