docs
docs copied to clipboard
Enhance documentation for TUnit integration and usage
This pull request expands documentation for TUnit, a .NET testing framework built on Microsoft.Testing.Platform, and clarifies its support for various extensibility features and workflows. The changes improve coverage of TUnit in comparison to other frameworks, add practical examples for advanced scenarios (such as filtering, ordering, code coverage, and mutation testing), and update documentation to show that Microsoft.Testing.Platform extensions work with TUnit.
TUnit documentation enhancements:
- Added detailed description of TUnit, including its use of source generation, parallel test execution, and links to official documentation and language-specific guides. [1] [2]
- Added comprehensive examples for filtering TUnit tests with
dotnet test --filter, including supported attributes and operator usage. [1] [2] - Provided an example of ordering TUnit tests using the
[DependsOn]attribute, covering dependency handling, failure behavior, and method overloads.
Integration with Microsoft.Testing.Platform extensions:
- Clarified that Microsoft.Testing.Platform extensions for output, test reports, code coverage, and architecture work with TUnit, in addition to MSTest, NUnit, and xUnit. [1] [2] [3] [4]
Advanced testing scenarios with TUnit:
- Added sections on using code coverage tools (e.g., Coverlet, ReportGenerator) and mutation testing (Stryker.NET) with TUnit, including async test patterns and project setup instructions. [1] [2] [3]