Giter Site home page Giter Site logo

testeroid's Introduction

Testeroid

Travis build status Appveyor build status Coverage Status Conventional Commits

dotnet test on steroids

how it works:

  1. 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
  2. Executes tests with code coverage using the awesome coverlet
  3. Merges results of all test projects into one coverage result
  4. Generates reports
    • lcov
    • cobertura
    • html
    • opencover
    • console summary

Installation

dotnet tool install --global Testeroid

Usage

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.

Roadmap

  • HTML Reports

Kudos

Most of the work that is done by testeroid is based or done by coverlet.

HTML Reports generated with Report Generator.

testeroid's People

Contributors

saintedlama avatar christophwalcher avatar

Stargazers

Tyler Koske avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.