resharper-xunit
resharper-xunit copied to clipboard
Theory test runs only once
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.
I can run these tests from Test Explorer w/o any issues.
Try to update to JetBrains.ReSharperUltimate.2017.3.EAP1. for me it solved the problem
I have the same problem but only in netstandard 2 project.
this is (still/also) an issue also with running from console (using xunit.runner.console 2.3.1)
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.