-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #503 from baynezy/feature/issue-502-mutation
Add mutation testing to feature branches
- Loading branch information
Showing
4 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
comparison: | ||
type: string | ||
description: 'The comparison to use for the mutation testing' | ||
required: true | ||
env: | ||
MAJOR_DOTNET_VERSION: 8 | ||
TestPath: /home/runner/work/Html2Markdown/Html2Markdown/test/Html2Markdown.Test/Files/ | ||
|
||
jobs: | ||
mutation-testing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: ${{ env.MAJOR_DOTNET_VERSION }}.0.x | ||
- name: Install Stryker | ||
run: | | ||
dotnet tool install -g dotnet-stryker | ||
- name: Run Stryker | ||
run: | | ||
dotnet stryker --since:${{ inputs.comparison }} | ||
- name: Upload Report | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Mutation-Report | ||
path: ./StrykerOutput/*/reports/mutation-report.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"stryker-config": | ||
{ | ||
"solution": "Html2Markdown.sln", | ||
"project": "Html2Markdown.csproj", | ||
"thresholds": { | ||
"high": 95, | ||
"low": 85, | ||
"break": 80 | ||
}, | ||
"since": { | ||
"target": "develop", | ||
"ignore-changes-in": [ | ||
"**/*.md", | ||
"**/*.yml", | ||
"**/*.json", | ||
"**/*.txt" | ||
] | ||
} | ||
} | ||
} |