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.
AcceptanceTestAttributeBugAttributeEndToEndTestAttributeEpicAttributeFeatureAttributeFunctionalTestAttributeIntegrationTestAttributeIssueAttributePerformanceTestAttributePostDeploymentTestAttributePreDeploymentTestAttributeUnitTestAttributeUserStoryAttributeWorkItemAttributeThese can be applied to all class and method definitions as follows.
[TestFixture]
[AcceptanceTest] // Mark all test methods as AcceptanceTest
public partial class FantasticTest
{
[Test]
[AcceptanceTest] // Alternatively, only one method can be selected.
public void I_am_Ironman()
{
Assert.Fail();
}
}