Solution contains seven projects:
Calculator.Core
- contains core logic for solutionCalculator.Console
- console application, referencesCalculator.Core
Calculator.Server
- ASP.NET Core service, referencesCalculator.Core
Calculator.Core.Tests
- contains unit tests forCalculator.Core
Calculator.Console.Tests
- contains tests forCalculator.Console
, startsCalculator.Console
as child process and verifies outputCalculator.Server.Tests
- standard ASP.NET Core tests forCalculator.Server
projectCalculator.Server.IntegrationTests
- integration tests forCalculator.Server
project. Before tests are executedCalculator.Server
needs to be started locally
- Scenario 01 Default settings (binary .coverage report)
- Scenario 02 Cobertura format by command line
- Scenario 03 Cobertura format by configuration
- Scenario 04 XML format by command line
- Scenario 05 Exclude project, method and source file
- Scenario 06 Exclude tests projects and other libraries (xunit, moq)
- Scenario 07 Static instrumentation
- Scenario 08 Code coverage for console application
- Scenario 09 Code coverage for console application - static instrumentation
- Scenario 10 Code coverage for console application - static instrumentation with instrument command
- Scenario 11 Code coverage for child processes enabled
- Scenario 12 Code coverage for child processes disabled
- Scenario 13 Code coverage for ASP.NET Core tests
- Scenario 14 Code coverage for ASP.NET Core integration tests
- Scenario 15 Code coverage for ASP.NET Core integration tests - coverage collection in server mode
- Scenario 16 Code coverage for ASP.NET Core integration tests - code coverage report per test
- Scenario 17 Code coverage for ASP.NET Core integration tests - snapshots without resetting counters
- Scenario 18 Code coverage for whole solution
- Scenario 19 Code coverage for whole solution with test projects excluded
- Scenario 20 Code coverage for whole solution with logs
- Scenario 21 Code coverage for whole solution with script to run tests
- Scenario 22 Code coverage for child processes using static instrumentation without binaries restore
- Scenario 23 Code coverage for child processes using static instrumentation with binaries restore
- Scenario 24 Code coverage for whole solution (only unit tests)
- Scenario 25 Code coverage for whole solution (only unit tests - using dotnet-coverage)