Skip to content

Conversation

@delatrie
Copy link
Contributor

@delatrie delatrie commented Aug 5, 2025

Context

Suppose we have the following test fixture:

using Allure.NUnit;
using Allure.NUnit.Attributes;
using NUnit.Framework;

[AllureNUnit, AllureDisplayIgnored]
public class IgnoredTestCases
{
    [TestCase("foo")]
    [TestCase("bar")]
    [Ignore("baz")]
    public void IgnoredTestMethod(string data)
    {
    }
}

When we run the tests and generate the report, the report will contain a single parameterless test result that corresponds to the test method (not a specific test case).

The PR fixes this issue by properly collecting ignored leaves from the test hierarchy provided by NUnit.

Screenshots

Before:

image

After:

image

@delatrie delatrie merged commit 1d3ff7f into main Aug 5, 2025
6 checks passed
@delatrie delatrie added the type:bug Something isn't working label Aug 5, 2025
@delatrie delatrie deleted the fix/display-ignored branch August 5, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theme:nunit type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants