Skip to content

undron/NUnitAllureBase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NUnitAllureBase

Using:

public abstract class ABase : NUnitAllureBase
{
    [OneTimeSetUp] public void OTS() => AllureBeforeAllTestsInClass();
    [OneTimeTearDown] public void OTT() => AllureAfterAllTestsInClass();
    [SetUp] public void S() => AllureBeforeTest();
    [TearDown] public void T() => AllureAfterTest();
}

public class TestClass1 : ABase
{
    [Test]
    public void Test2()
    {
        Step("This is a empty step");

        Step("This is a non empty step", () =>
        {
            TestContext.WriteLine("Some test log");
            Assert.That(1, Is.EqualTo(1));
        });
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages