Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.02 KB

File metadata and controls

39 lines (25 loc) · 1.02 KB

TCSystem.MetaData.Tests

NUnit tests for TCSystem.MetaData, targeting net8.0 and net10.0.

Prerequisites

See the repository build and test prerequisites. Run the commands below from the repository root.

Run Tests

Run both target frameworks, restoring and building as needed:

dotnet test MetaData/Tests/TCSystem.MetaData.Tests.csproj --configuration Release

Run only one framework:

dotnet test MetaData/Tests/TCSystem.MetaData.Tests.csproj --configuration Release --framework net10.0

After the complete solution has already been built in Release, add --no-build --no-restore for a faster repeat run.

Coverage

dotnet test MetaData/Tests/TCSystem.MetaData.Tests.csproj --configuration Release --framework net8.0 -p:CollectCoverage=true -p:CoverletOutputFormat=opencover

The generated MetaData/Tests/coverage.net8.0.opencover.xml file is ignored by Git.

Test Stack

  • NUnit 4
  • NUnit3TestAdapter
  • Microsoft.NET.Test.Sdk
  • Coverlet MSBuild