Bug Report T300432
Visible to All Users

Test Runner does not run tests from the XUnit test fixture

created 9 years ago

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.

Comments (1)
DevExpress Support Team 9 years ago

    Hi Travis,

    Thanks for pointing out the problem. I have reproduced it with the following code snippet:

    C#
    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.

    Answers approved by DevExpress Support

    created 9 years ago

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Comments (1)
      DevExpress Support Team 9 years ago

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.