A comprehensive compatibility library providing standardized test categorization attributes across multiple .NET test frameworks. This library enables teams to maintain consistent test organization, filtering, and execution management regardless of their chosen testing framework.
NetEvolve.Extensions.Test bridges the gap between different .NET testing frameworks by providing a unified set of test categorization attributes. Whether you're using MSTest, NUnit, TUnit, or XUnit, you can apply the same categorization strategy across your entire solution.
- ✅ Framework Agnostic: Use the same attributes across MSTest, NUnit, TUnit, XUnit, and XUnit v3
- ✅ Consistent Filtering: Execute tests uniformly with
dotnet test --filter TestCategory=IntegrationTest - ✅ Standardized Organization: Organize tests by type (Unit, Integration, Performance, etc.)
- ✅ Work Item Tracking: Link tests to bugs, features, user stories, and epics
- ✅ Deployment Testing: Separate pre-deployment and post-deployment validation
- ✅ .NET 10 Support: Built for modern .NET with full C# 13 compatibility
| Framework | Package | NuGet |
|---|---|---|
| MSTest | NetEvolve.Extensions.MSTest | |
| NUnit | NetEvolve.Extensions.NUnit | |
| TUnit | NetEvolve.Extensions.TUnit | |
| XUnit | NetEvolve.Extensions.XUnit | |
| XUnit v3 | NetEvolve.Extensions.XUnit.V3 |
Choose the package matching your test framework:
# MSTest
dotnet add package NetEvolve.Extensions.MSTest
# NUnit
dotnet add package NetEvolve.Extensions.NUnit
# TUnit
dotnet add package NetEvolve.Extensions.TUnit
# XUnit
dotnet add package NetEvolve.Extensions.XUnit
# XUnit v3
dotnet add package NetEvolve.Extensions.XUnit.V3using NetEvolve.Extensions.MSTest; // Or NUnit, TUnit, XUnit, etc.
[TestClass]
[IntegrationTest] // Categorize all tests in this class
public class DatabaseTests
{
[TestMethod]
[Bug] // Mark as bug fix test
public void Should_Handle_Concurrent_Updates()
{
// Your test implementation
}
}# Run only integration tests
dotnet test --filter TestCategory=IntegrationTest
# Run unit and acceptance tests
dotnet test --filter "TestCategory=UnitTest|TestCategory=AcceptanceTest"
# Exclude performance tests
dotnet test --filter "TestCategory!=PerformanceTest"UnitTestAttribute- Isolated component testsIntegrationTestAttribute- Component interaction testsAcceptanceTestAttribute- User story validationPerformanceTestAttribute- Performance and load testingEndToEndTestAttribute- Complete workflow testsFunctionalTestAttribute- Feature behavior testsArchitectureTestAttribute- Design constraint validationCodedUITestAttribute- UI automation tests (MSTest)
BugAttribute- Bug fix validationIssueAttribute- Issue trackingFeatureAttribute- Feature implementationEpicAttribute- Epic-level requirementsUserStoryAttribute- User story completionWorkItemAttribute- Generic work item association
PreDeploymentTestAttribute- Pre-deployment validationPostDeploymentTestAttribute- Post-deployment verification
- .NET 10 or later
- Compatible with .NET Standard 2.0 projects (.NET Framework 4.6.1+, .NET Core 2.0+)
- C# 13 support
Each package includes comprehensive documentation:
- MSTest Documentation
- NUnit Documentation
- TUnit Documentation
- XUnit Documentation
- XUnit v3 Documentation
Contributions are welcome! Please feel free to:
- Report issues or bugs
- Suggest new features or improvements
- Submit pull requests
Visit our GitHub repository to get started.
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by the NetEvolve Team