devices.xunit icon indicating copy to clipboard operation
devices.xunit copied to clipboard

Failed MemberData doesn't show in runner app

Open wcoder opened this issue 4 years ago • 1 comments

Test:

[Theory]
[MemberData(nameof(Data))]
public void Test(string p1, UIColor p2)
{
  // ...
}

When some MemberData, ClassData items fail the test, the runner app doesn't show failed, only succeeded items. InlineData works fine.

Console log:

[FAIL] Tests.Test : System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values.

Expected Exception.


xUnit: v2.4.1 xUnit.Runner.Devices: v2.5.25 Platform: iOS

wcoder avatar Aug 31 '20 13:08 wcoder

I am also seeing this when using [Theory][MemberData(Data))]. I think this has been broken for a while. I only now caught it because I started running the tests headlessly and parsing the xunit test results file in CI.

Also on xunit 2.4.1 and xunit.runner.devices 2.5.25

1Cor125 avatar Sep 18 '20 14:09 1Cor125