-
Notifications
You must be signed in to change notification settings - Fork 40
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
Tests not discoverable in VS 2017 #31
Comments
Hello, I just tried it out in Visual Studio 2017 Community Edition 15.1 (26403.3). I have created two projects:
In both I added following packages (plus their dependencies):
With that setup, when I added following code, I was able to run test from both, Resharper 2017.1.1 as well as from standard Visual Studio runner: using LightBDD.Framework.Scenarios.Extended;
using LightBDD.XUnit2;
using Xunit.Abstractions;
[assembly: LightBddScope]
namespace MyTestProject1
{
public class My_feature : FeatureFixture
{
public My_feature(ITestOutputHelper output) : base(output)
{
}
[Scenario]
public void My_scenario()
{
Runner.RunScenario(_ => Hello_world());
}
private void Hello_world()
{
}
}
} Please ensure that you have I hope it will help. |
I tried running your example...it's still not discovered in VS17 test explorer. Can you confirm Test Explorer is displaying it? |
I have attached sample solution with 2 projects: On my VS 2017 with spec mentioned in first response, I am able to run the tests: |
OK. Those test cases appear. May be something on my end... |
It's working now. Can't reproduce the problem anymore. Thanks for your input! |
Despite installing Nuget package xunit.visualstudio.runner, the test is still not discoverable. When I use [Fact], it finds the test. What is the difference here?
The text was updated successfully, but these errors were encountered: