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

Visual Studio Test Explorer does not show NSpec Tests anymore #11

Open
wdhofmann opened this issue Aug 30, 2018 · 1 comment
Open

Visual Studio Test Explorer does not show NSpec Tests anymore #11

wdhofmann opened this issue Aug 30, 2018 · 1 comment

Comments

@wdhofmann
Copy link

After updating Visual Studio 2017 to 15.8.2 my NSpec tests do not show up in the test explorer window anymore. I have seen a Microsoft video where they talk about performance improvements for test discovery by using Roslyn to analyse the code. So I think that could be the cause. Is there a way to fix the NSpec test adapter?

@BrainCrumbz
Copy link
Collaborator

Hi there. Thanks for using this test adapter. Yes, there currently are issues using NSpec.VsAdapter with newer VS 2017 versions (see e.g. nspec/NSpec#199). TBH we are not actively looking into it now. This is also in part due to the number of changes happened in the test platform API, mixed with changes between .Net Framework, .Net Core 1.x and then .Net Core 2.x.

If you feel like having a go at it, we can give you support when needed.

If you are on a .Net Framework project and can switch over console, you could use the NSpecConsoleRunner (e.g. shown here).

If you need a quick (& still clean) way of running and debugging your tests from Visual Studio, you can create a tiny test console application, as described here.

HTH

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