resharper-xunit icon indicating copy to clipboard operation
resharper-xunit copied to clipboard

Theory test runs only once

Open ghost opened this issue 7 years ago • 5 comments

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 avatar Oct 11 '17 09:10 ghost

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

ghost avatar Oct 23 '17 12:10 ghost

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

alexsokolov avatar Oct 25 '17 16:10 alexsokolov

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

caseee avatar Nov 23 '17 15:11 caseee

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

saberell avatar Nov 27 '17 11:11 saberell

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.

Adebeer avatar Nov 29 '17 03:11 Adebeer