xunit / resharper-xunit

ReSharper runner for xUnit.net
Apache License 2.0
91 stars 20 forks source link

Theory test runs only once #130

Open ghost opened 6 years ago

ghost commented 6 years ago

The code:

    [Theory]
    [InlineData(10000)]
    [InlineData(1500)]
    public void TestMethod(int maxDuration)
    {
    }

This test is shown as a single test case. When I clear R# caches and restart Visual Studio it starts showing this method as multiple tests (per InlineData), but when I run them it runs/shows only one test again.

I faced this issue quite recently, previously I didn't have this problem.

PS: I'm using VS2017 and R# 2017.2. I tried different versions of "xunit" and "xunit.runner.visualstudio" (including 2.3.0), but it works the same.

ghost commented 6 years ago

I can run these tests from Test Explorer w/o any issues.

alexsokolov commented 6 years ago

Try to update to JetBrains.ReSharperUltimate.2017.3.EAP1. for me it solved the problem

caseee commented 6 years ago

I have the same problem but only in netstandard 2 project.

saberell commented 6 years ago

this is (still/also) an issue also with running from console (using xunit.runner.console 2.3.1)

Adebeer commented 6 years ago

When do you plan to release the 2017.3.EAP1? I can't run xUnit Theories - have a license but I'd like this to be fixed in official version. Using .net Core 2 - tests either don't run/abort or only one runs.