dotnet test on steroids
how it works:
- Discovers testable projects
- Auto discovery: Include a reference to
Microsoft.NET.Test.Sdk
in the csproj file - Override: Mark your project with
<IsTestable>true</IsTestable>
in the csproj file to include/exclude the test project
- Auto discovery: Include a reference to
- Executes tests with code coverage using the awesome coverlet
- Merges results of all test projects into one coverage result
- Generates reports
- lcov
- cobertura
- html
- opencover
- console summary
dotnet tool install --global Testeroid
Usage: testeroid [options]
Options:
-h|--help Show help information
-v|--version Show version information
-c|--configuration <CONFIGURATION> configuration to use for building the project. The default is 'Debug'.
--no-restore Do not restore the project before building.
--no-build Do not build the project.
-d|--directory <DIRECTORY> Specifies the Working directory. If specified a solution or a csproj file is discovered using discovery logic in the working directory.
--silent Do not write to standard output.
--verbose Write verbose information to standard output.
--report <REPORT> Specify which reports to create: console, cobertura or lcov.By default console, cobertura and lcov are created
--test-logger <LOGGER> Specify which logger should be used for 'dotnet test'.
--exclude <PATTERN> Excludes assembly or types using '[Assembly-Filter]Type-Filter' syntax with wildcards '*' and '?'. For example: --exclude '[*]Testeroid.*' will exclude all types in Testeroid namespace in any assembly.
--include <PATTERN> Includes assembly or types using '[Assembly-Filter]Type-Filter' syntax with wildcards '*' and '?'. For example: --include '[*]Testeroid.*' will include all types in Testeroid namespace in any assembly.
--exclude-path <PATTERN> Excludes directories from test project discovery. To exclude a directory 'fixtures' use --exclude-path fixtures. Note all directories with name containing fixture will be excluded.
Testeroid recognize test projects by testing if they contain a <IsTestable>true</IsTestable&>
or include a reference to Microsoft.NET.Test.Sdk
element in their csproj
project file.
- HTML Reports
Most of the work that is done by testeroid
is based or done by coverlet.
HTML Reports generated with Report Generator.