Skip to content

Zebrunner Agent: C# NUnit reporting integration.

Notifications You must be signed in to change notification settings

azarouski/csharp-agent-nunit

Repository files navigation

Zebrunner NUnit agent

Incubation warning

Please note, that agent is currently in an incubating state, meaning that Zebrunner team can not guarantee its stable work since it was not properly tested.

ZafiraIntegration library that implements integration Zafira reporting into existing NUnit test structure.

Inclusion into your project

Installation

To enable library just add reference to your project:

References -> Add Reference ...  bin/Realese/ZafiraIntegration.dll 

Configuration

There are two possible ways to use library:

  1. Add class attributes for class level reporting:
[ZafiraClass] - for creation test suite in zafira with the name of the class
[ZafiraTest] - for creation tests in zafira
  1. Add assembly and class attributes for assembly level reporting:
[ZafiraAssembly] - for creation test suite in zafira with the name of Jenkins job it was triggered from
[ZafiraAssemblyTest] - for creation tests in zafira

Examples

  • Use attributes for base testing class or just for classes that need to be reported:
    [TestFixture, ZafiraClass, ZafiraTest]
    public class BaseTest 
    {
     
        [OneTimeSetUp]
        public void startDriver()
        {
            ...
        }
    
    }
  • Add assembly attribute for base testing class at assembly level and add test attribute for base testing class or just for classes that need to be reported
[assembly: ZafiraAssembly]

namespace Automation.tests
{
    [TestFixture, ZafiraAssemblyTest]
    public class BaseTest
    {
       ...
    }
}

Troubleshooting

To be done ...

About

Zebrunner Agent: C# NUnit reporting integration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%