Skip to content

Publicly expose IgnoreAttribute.Reason #4777

Closed

Description

@RenderMichael

I'm doing some internal analytics about the ignored tests in my test suites, and it would be useful if the reason from the constructor could be publicly exposed on IgnoreAttribute.

I'm happy to contribute this myself.

API Proposal

namespace NUnit.Framework;

public class IgnoreAttribute
{
+    public string Reason { get; }
}

Activity

  1. OsirisTerje commented on Aug 14, 2024

    @OsirisTerje
    Member

    Sounds good to me :-)

    It also matches the behavior of some of the other attributes we have, like Order.

  2. RenderMichael commented on Aug 15, 2024

    @RenderMichael
    ContributorAuthor

    Opened #4781 for this

  3. added this to the 4.2 milestone on Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions