Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for NUnit's SetUpFixtures #361

Open
delatrie opened this issue Jun 19, 2023 · 0 comments
Open

Add support for NUnit's SetUpFixtures #361

delatrie opened this issue Jun 19, 2023 · 0 comments
Assignees
Labels
task:new feature Requesting new capability or software feature theme:nunit

Comments

@delatrie
Copy link
Contributor

delatrie commented Jun 19, 2023

Currently, SetUpFixtures are not included into the report. Ideally, they should be collected automatically, with no additional efforts, so the following code:

using NUnit.Framework;
using NUnit.Allure.Core;

[SetUpFixture]
public class MyFixture
{
    [OneTimeSetUp]
    public void SetUp(){}

    [OneTimeTearDown]
    public void TearDown(){}
}

public class TestClass
{
    [Test]
    public void TestMethod(){}
}

should produce the following report:

image

Motivation

Same as #360: fixtures should be supported out-of-box.

Other information

Again, as for #360:

  1. There should be a way to preclude a fixture from getting in the report for those who are used to the current opt-in approach to fixtures.
  2. There should be a way to assign a custom name to a fixture (on a class or method levels).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task:new feature Requesting new capability or software feature theme:nunit
Projects
None yet
Development

No branches or pull requests

1 participant