MDcod / nunit-runner-vscode-ext

2 stars 0 forks source link

How am I supposed to run C# NUnit tests? #3

Open NikoUmbleLSPA opened 6 months ago

NikoUmbleLSPA commented 6 months ago

I am completely baffled by this extension. I specified:

"nunitTestRunner.projectsPatterns": [ "*Testing/*/.Tests.cs" ]

...and I got:

image

...???

MDcod commented 4 months ago

@NikoUmbleLSPA I'm very sorry for the long response. Thank you for the bug report. The bug should be fixed in the version 0.3.1 if it is not please let me know

NikoUmbleLSPA commented 4 months ago

@MDcod I appreciate your response. However, I get the same result. See the following settings:

"nunitTestRunner.projectsPatterns": [
        "**/*.Tests.cs", // I get the same response with "*Testing/**/*.Tests.cs"
        "**/bin/**/*.Tests.dll" // does not show any tests; maybe my declaration is off
    ],

image

I confirm the latest version:

image

I also made sure to restart Extensions, and VS Code completely.

MDcod commented 4 months ago

@NikoUmbleLSPA oh i'm sorry. I didn't see mistake. U can use only .csproj and .dll files for run test. But you can't use .cs files :) Please try to write path to your test .csproj in nunitTestRunner.projectsPatterns. For .dll now it can work unstable.

I think your second .dll pattern doesn't work becouse of the first pattern. Please try this

"nunitTestRunner.projectsPatterns": [
        "**/bin/**/*.Tests.dll"
    ],

and can you show path to your actuall test .dll file