formulahendry / formulahendry/vscode-dotnet-test-explorer

Removed directory ... due to it not containing any tests

Open
#248 5 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
208
Forks
93
PR merge metrics
No merged PRs in 30d

Description

If you open an issue please include
1. Dotnet sdk version
3.1.102

2. Unit test framework and relevants versions of that
```



```
3. A link to a repo that replicated the issue
https://github.com/mjnorman/test-explorer-repro

The issue is that the Test Explorer does not recognize the Tests project. The repro was created by simply

```
dotnet new mvc -o MyProject.Web
dotnet new nunit -o MyProject.Tests
dotnet new sln
dotnet sln add HRMenu.Web/HRMenu.Web.csproj
dotnet sln add HRMenu.Tests/HRMenu.Tests.csproj
```
The log indicates:
```
Starting extension
Finding projects for pattern /test/**/*Tests.csproj
Found 1 matches for pattern in folder /test
Evaluating match /test/MyProject.Tests/MyProject.Tests.csproj
Adding directory /test/MyProject.Tests
Executing dotnet test -t -v=q --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=./lcov in /test/MyProject.Tests
[WARNING] Removed directory /test/MyProject.Tests due to it not containting any tests

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked test-explorer-repro repository and reproduce the setup using the listed dotnet new and dotnet sln commands. Read the log around `dotnet test -t` and the removal warning; done means the NUnit project remains recognized in Test Explorer instead of being removed as empty.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, typescript, vscode
Domain
devtools, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.