formulahendry / formulahendry/vscode-dotnet-test-explorer
Running unit tests hangs indefinitely
- Dominant language
- TypeScript
- Stars
- 208
- Forks
- 93
- PR merge metrics
- No merged PRs in 30d
Description
Running units test hangs indefinitely
--
1. Clone the repository from https://github.com/dmitrynovik/binary-heap
2. Open the cloned folder with Visual Studio Code (1.41.1)
3. Try to run discovered tests... they hang
The problem is not specific to this code repo but happens to me on other solutions.
The output (note that tests ARE run and the process does terminate; the log .trx file has the output):
---
Starting extension
Finding projects for pattern c:/Users\dmitry.novik\source\repos\Heapsort/
Found 1 matches for pattern in folder c:\Users\dmitry.novik\source\repos\Heapsort
Evaluating match c:/Users/dmitry.novik/source/repos/Heapsort/
Adding directory c:/Users/dmitry.novik/source/repos/Heapsort/
Executing dotnet test -t -v=q in c:/Users/dmitry.novik/source/repos/Heapsort/
Executing dotnet vstest "c:\Users\dmitry.novik\source\repos\Heapsort\HeapsortTest\bin\Debug\netcoreapp3.1\HeapsortTest.dll" /ListFullyQualifiedTests /ListTestsTargetPath:"C:\Users\dmitry.novik\AppData\Local\Temp\test-explorer-discover-3em29r\output.txt" in c:/Users/dmitry.novik/source/repos/Heapsort/
Discovered tests with unknown. Found 4 in 1 directories
Test run for , expecting 1 test results file(s) in total
Executing dotnet build in c:/Users/dmitry.novik/source/repos/Heapsort/
Executing dotnet test --no-build --logger "trx;LogFileName=C:\Users\dmitry.novik\AppData\Local\Temp\test-explorer-y5nvCw\0.trx" in c:/Users/dmitry.novik/source/repos/Heapsort/
Process 45580 started
New test results file
Process 45580 finished
The answers to the common questions
---
1. Dotnet sdk version: 3.1.101
2. Unit test framework and relevants versions of that: NUnit (3.12.0)
3. A link to a repo that replicated the issue: https://github.com/dmitrynovik/binary-heap
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the hang with the linked binary-heap repository in Visual Studio Code 1.41.1, using the reported .NET SDK 3.1.101 and NUnit 3.12.0 setup. Start with the test discovery and execution sequence in the output, then verify whether the explorer displays completed results. Done means the discovered tests finish without appearing to hang and their results are shown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100