Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 3.33 KB

README.md

File metadata and controls

55 lines (37 loc) · 3.33 KB

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.