Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NikoUmbleLSPA opened this issue May 13, 2024 · 3 comments
Open

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

NikoUmbleLSPA opened this issue May 13, 2024 · 3 comments

Comments

@NikoUmbleLSPA
Copy link

I am completely baffled by this extension. I specified:

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

...and I got:

image

...???

@MDcod
Copy link
Owner

MDcod commented Jul 9, 2024

@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
Copy link
Author

@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
Copy link
Owner

MDcod commented Jul 10, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants