Code Monkey home page Code Monkey logo

stryker-net's Introduction

Nuget Nuget Azure DevOps build Azure DevOps tests Gitter

Stryker.NET

Professor X: For someone who hates mutants... you certainly keep some strange company. William Stryker: Oh, they serve their purpose... as long as they can be controlled.

Introduction

Stryker.NET offers you mutation testing for your .NET Core and .NET Framework projects. It allows you to test your tests by temporarily inserting bugs.

For an introduction to mutation testing and Stryker's features, see stryker-mutator.io. Looking for mutation testing in JavaScript & Typescript or Scala?

Getting started

Stryker.NET is installed using NuGet as a dotnet core global tool. Stryker.NET can be installed in one of these ways:

Global install

dotnet tool install -g dotnet-stryker

Project install

Starting from dotnet core 3.0 dotnet tools can also be installed on a project level. This requires the following steps:

Create a file called dotnet-tools.json in your project folder. You can checkin to version control to make sure all team members have access to stryker

dotnet new tool-manifest

Then install stryker without the -g flag while executing the following command in the project folder

dotnet tool install dotnet-stryker

Update stryker dotnet tool

Dotnet global tools do not auto update. To update stryker as a global tool run dotnet tool update

For the full documentation on how to use Stryker.NET, see our configuration docs.

[Deprecated] csproj install

The old way of installing stryker is deprecated and replaced by the dotnet core tool. For a guide on how to upgrade see our blog.

Compatibility

Runs on test projects targeting:

  • netcoreapp 1.1+
  • netframework 4.5+

Requirements

Dotnet core runtime 2.2+ needs to be available on your system to run dotnet stryker.

For .NET Framework projects, Stryker.NET requires nuget.exe to be installed on your system. Please follow their installation instructions.

Supported Mutators

Right now, Stryker.NET supports the following mutations:

  • Arithmetic Operators
  • Equality Operators
  • Boolean Literals
  • Assignment statements
  • Unary Operators
  • Update Operators
  • Checked Statements
  • Linq Methods
  • String Literals

For the full list of all available mutations, see the mutator docs.

Supported Reporters

  • Html reporter
  • Console reporter
  • Progress reporter
  • Console dots reporter
  • Json reporter

For the full list of all available reporters, see the reporter docs.

Contributing

Want to help develop Stryker.NET? Check out our contribution guide.

stryker-net's People

Contributors

dependabot[bot] avatar richardwerkman avatar mobrockers avatar dependabot-preview[bot] avatar dupdob avatar rouke-broersma avatar simondel avatar robertlyson avatar cmulder avatar yaelkeemink avatar konh avatar valdas3 avatar szpi avatar joostas avatar manuc66 avatar stukongeluk avatar kevinlyles avatar michielpeeters avatar fabianeichfeldt avatar fabiantospace avatar broodjetom avatar timoosterbroek avatar stefankraai avatar ptoonen avatar madspb avatar kkolodziejczak avatar jacrys avatar kashifsoofi avatar royto avatar bigtalljosh 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.