Skip to content
This repository has been archived by the owner on Dec 12, 2017. It is now read-only.

Theory test runs only once #130

Open
ghost opened this issue Oct 11, 2017 · 5 comments
Open

Theory test runs only once #130

ghost opened this issue Oct 11, 2017 · 5 comments

Comments

@ghost
Copy link

ghost commented Oct 11, 2017

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
Copy link
Author

ghost commented Oct 23, 2017

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

@alexsokolov
Copy link

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

@caseee
Copy link

caseee commented Nov 23, 2017

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

@saberell
Copy link

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

@Adebeer
Copy link

Adebeer commented Nov 29, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants