This library provides various compatibility features between `NUnit`, `XUnit`, `XUnit.V3`, `TUnit` and `MSTest`.
$ dotnet add package NetEvolve.Extensions.NUnitCompatibility library for solutions using multiple .NET test frameworks. The following test frameworks are supported - MSTest, NUnit & XUnit.
For consistent usage and addressing of use cases like
dotnet test -c Release --filter TestCategory=IntegrationTest,
the following attributes are provided in this library in the namespace NetEvolve.Extensions.NUnit.
AcceptanceTestAttributeArchitectureTestAttributeBugAttributeEndToEndTestAttributeEpicAttributeFeatureAttributeFunctionalTestAttributeIntegrationTestAttributeIssueAttributePerformanceTestAttributePostDeploymentTestAttributePreDeploymentTestAttributeUnitTestAttributeUserStoryAttributeWorkItemAttributeThese can be applied on assembly, class or method definitions as follows.
[assembly: AcceptanceTest] // Mark all test methods of this assembly as AcceptanceTest
[TestFixture]
[AcceptanceTest] // Mark all test methods of this class as AcceptanceTest
public partial class FantasticTest
{
[Test]
[AcceptanceTest] // Alternatively, only one method can be selected.
public void I_am_Ironman()
{
Assert.Fail();
}
}40.0K