Given a .NET 4.5.2 .csproj project that references the following packages:
XML<packages>
<package id="Microsoft.Framework.Configuration" version="1.0.0-beta7" targetFramework="net452" />
<package id="Microsoft.Framework.Configuration.Abstractions" version="1.0.0-beta7" targetFramework="net452" />
<package id="xunit" version="2.1.0" targetFramework="net452" />
<package id="xunit.abstractions" version="2.0.0" targetFramework="net452" />
<package id="xunit.assert" version="2.1.0" targetFramework="net452" />
<package id="xunit.core" version="2.1.0" targetFramework="net452" />
<package id="xunit.extensibility.core" version="2.1.0" targetFramework="net452" />
<package id="xunit.extensibility.execution" version="2.1.0" targetFramework="net452" />
<package id="xunit.runner.visualstudio" version="2.1.0" targetFramework="net452" />
</packages>
I create an XUnit test fixture with one test marked with [Fact] and a second test that is a [Theory] with two [InlineData] definitions.
In the VS editor on the active document window I see the little test tube icon by each test and by the test fixture class. If I hover over the test tube at the fixture level I see a correct tool tip pop up telling me tests are ready to run. However, running them yields the same result each time:
Summary: Passed: 0, Failed: 0, Ignored: 0
Duration: 3.8180
(The duration changes, but the summary/result is the same each time.)
Basically, it appears no tests are actually running.
Hi Travis,
Thanks for pointing out the problem. I have reproduced it with the following code snippet:
using Xunit; namespace TestNamespace { public class TestClass { [Fact] public void Test() { Assert.True(100 > 1); } [Theory] [InlineData(1)] [InlineData(100)] public void Theory(int value) { Assert.True(value > 10); } } }
We will try to fix this problem as soon as possible. Once we resolve it, we will let you know about this in the context of this ticket.