Skip to content

xUnit.net: historyId is missing if [Theory(Skip = "...")] is present #422

Description

@delatrie

I'm submitting a ...

  • bug report
  • feature request
  • support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

The result file of a skipped theory doesn't contain historyId. Each such file creates a separate test case in the report instead of one test case with (optionally) multiple reruns.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

If we run the following test multiple times:

using System.Collections;
using Xunit;

public class SkippedTests
{
    [Theory(Skip = "Entire theory skipped")]
    [InlineData(0)]
    [InlineData(1)]
    public void SkippedTheory(int _) { }
}

Multiple result files are generated. Each has historyId missing. If we generate the report, we see multiple test cases:

What is the expected behavior?

Test result of each such theory contains historyId. Only one test case (with one or more reruns) is shown in the report.

Please tell us about your environment:

  • Allure version: 2.23.1
  • Test framework: xUnit.net@2.5.3
  • Allure adaptor: Allure.XUnit@2.10.0

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions