nunit.testlogger icon indicating copy to clipboard operation
nunit.testlogger copied to clipboard

Xunit Theories are reported without their input data

Open sl-slaing opened this issue 3 years ago • 0 comments

If a theory is created with inline, or other data sources, shows in the report with the method name only.

As such it is impossible to determine the scenarios that have been tested, and in the case of a failure which inputs were part of the test.

NUnit XML format supports the reporting of this data, is it possible to report this in the XML via this library? Similar to the output Resharper shows in its unit test session window?

Example reproduction:

[InlineData("foo")]
[InlineData(null)]
public void MyTheory(string input) {
  Assert.NotNull(input);
}

This is reported as:

  • MyTheory - pass
  • MyTheory - fail

Ideally it would be reported as (or something equivalent to):

  • MyTheory(input: "foo") - pass
  • MyTheory(input: null) - fail

sl-slaing avatar Oct 20 '20 19:10 sl-slaing