-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Single tests should be able to be run through the IDE #14412
Comments
Or debug single tests. |
We currently do not have support for hosting and running xunit within VS. That actually requires a fair amount of work but we can use this issue to track that work. This is called out in our wiki https://github.com/dotnet/corefx/wiki/Developer-Guide
|
Thanks @weshaggard. I've added the link to the paragraph in the wiki you quoted. |
Work around courtesy @mmitche in gitter: |
@MattWhilden @mmitche Is that a workaround for running a single test from the command line? If so, there is a much simpler way:
|
I think you can even get more specific with the version of xunit we have: -method [MethodName] |
Yes, sorry, I was just quoting my previously posted example. Specific examples should be added to the wiki, but I don't have access to do that, and GitHub doesn't allow PRs for wiki pages. |
Well, I know how to run single tests from the command line, which was less complicated than whatever this workaround is supposed to be (I'm not entirely clear on what the intended process is supposed to be - thanks to @eatdrinksleepcode for finding the current command I use). Of course, since the build tools are out of date (fixed, but corefx hasn't picked it up yet), it doesn't use what the IDE built...What I'd really prefer is a way to debug from the IDE. The current directions spawn all tests, and again, not whatever the IDE built. @mmitche gave me a command to try, but my debugger install is apparently borked, so can't test it. |
You can run single tests in VS by modifying the command line passed in the Debug tab of project properties. Enabling the test explorer window is a large piece of work that should be tackled as its own effort. |
Currently there seems to be some miscommunication between the corefx repo/project setup and the IDE, and the test discovery inside the IDE for xunit is broken.
This makes it difficult to run single tests
The text was updated successfully, but these errors were encountered: