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

NUnit "run test" and "debug test" links in VS Code no longer work #1635

Closed
lgreenlee opened this issue Jul 13, 2017 · 7 comments
Closed

NUnit "run test" and "debug test" links in VS Code no longer work #1635

lgreenlee opened this issue Jul 13, 2017 · 7 comments

Comments

@lgreenlee
Copy link

Environment data

dotnet --info output:
Product Information:
Version: 1.0.0-preview2-1-003177
Commit SHA-1 hash: a2df9c2576

Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
OS Platform: Linux
RID: ubuntu.16.04-x64

VS Code version:
C# Extension version:
1.11.0

Steps to reproduce

Load an NUnit based unit test
Click "Run Test" on a properly annotated test

Expected behavior

Test runs

Actual behavior

NUnit .NET Core Runner 3.4.0
Copyright (C) 2016 Charlie Poole
Invalid argument: -method

@DustinCampbell
Copy link
Member

Any chance you could provide a project that reproduces the issue? From your 'dotnet --info' listing above, it appears that this is an older project.json-based .NET Core project?

@lgreenlee
Copy link
Author

@DustinCampbell Thanks for the response. Unfortunately the project is a proprietary code base. It is a .NET Core, project.json project. It looks like -method is no longer supported either in dotnet-test-nunit, NUnit or the test runner harness but I suspect OmniSharp is actually initiating the call. It is hard to figure out who is making the call. Using -where "method=MethodName" works though. It seems like the format of the command line args "just" needs to be changed. This worked fine up until a month or two ago when I upgraded VSCode and OmniSharp and things broke.

@DustinCampbell
Copy link
Member

@lgreenlee
Copy link
Author

lgreenlee commented Jul 13, 2017 via email

@DustinCampbell
Copy link
Member

@lgreenlee: Did that address the issue?

@lgreenlee
Copy link
Author

lgreenlee commented Jul 18, 2017 via email

@DustinCampbell
Copy link
Member

This should now be fixed.

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

No branches or pull requests

2 participants