Coder Social home page Coder Social logo

raschmitt / run-stryker-task Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 201 KB

Azure Devops extension to run mutation tests on .NET Core and .NET Framework projects with Stryker.Net.

Home Page: https://marketplace.visualstudio.com/items?itemName=raschmitt.run-stryker-net-task

License: MIT License

PowerShell 100.00%
stryker mutations azure-devops dotnet

run-stryker-task's Introduction

Run Strker.Net - Azure Devops Task

Visual Studio Marketplace Version Visual Studio Marketplace Installs - Azure DevOps Extension Visual Studio Marketplace Rating Azure DevOps builds

Azure Devops extension to run mutation tests on .NET Core and .NET Framework projects with Stryker.Net.

Note that as of version 1.x this extension only works on windows hosted agents, because it is written in Powershell. I plan to upgrade it to Typescript in the future so it can be used on any type of agent.

Disclaimer: This is not an official Stryker Mutator extension.

How to use

1. Install the extension into your Azure DevOps organization.

2. Add the task to your pipeline

  • Copy and paste the following code on your .yml file, and add your own parameters.
- task: run-stryker@1
  inputs:
    testProject: ''
    parameters: ''

3. Run your pipeline

Parameters

Parameter Description Required
testProject Name of the test project to mutate (e.g. Sample.Tests.csproj). Wild cars are available (e.g. *Tests.csproj). Be sure to match only one test project here. Yes
parameters Parameters wich will be passed to Stryker (e.g. --reporters "['html', 'progress']"). More on the available parameters can be found on the oficcial Stryker .Net configuration docs. No

Sample

- task: run-stryker@1
    displayName: 'Run mutations'
    inputs:
      testProject: '*Tests.csproj'
      parameters: --reporters "['html', 'dashboard']" --dashboard-api-key $(STRYKER_DASHBOARD_API_KEY) -project github.com/$(Build.Repository.Name) -version $(Build.SourceBranchName)

Contributions

Contributions and feature requests are always welcome.

run-stryker-task's People

Contributors

raschmitt avatar

Watchers

 avatar  avatar

Forkers

trymvalebjorg

run-stryker-task's Issues

Port extension to typescript

The extension needs to be ported from Powershell to Typescriptso it can be run on any agents other than Windows ones.

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.