allure-framework/allure-csharp

xUnit.net: False missing arguments warning if [Theory(Skip = "...")] is used

delatrie opened this issue · 0 comments

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 following warning is shown if [Theory(Skip = "...")] is used:

Unable to attach arguments of SkippedTheory to allure report. You may try to compile the project in debug mode as a workaround

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

The following code leads to the abovementioned warning:

using System.Collections;
using Xunit;

public class SkippedTests
{
    [Theory(Skip = "Skipped via the Skip property of Theory.")]
    [InlineData(0)]
    public void SkippedTheory(int _) { }
}

What is the expected behavior?

The warning either isn't shown at all or is reformulated to better reflect what happened.

Please tell us about your environment:

  • Test framework: xunit@2.5.3
  • Allure adaptor: Allure.XUnit@2.10.0

Other information