Skip to content

Give all instances of an interceptor the same category #34

@mattyas

Description

@mattyas

I have a few times wanted to include/exclude all tests using a specific interceptor. The possibility to add a category to all fixtures using it would solve the need.

Suggestion:

public interface ICategoryName
{
     string Category { get; }
}
public class UnicornInterceptor : ITestContext, ICategoryName
{
    public string Category => "Unicorns";

    public void After(ITestResult result)
    {
        //Clean unicorns
    }

    public void Before()
    {
        //Prepare unicorns
    }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions