Skip to content

Commit

Permalink
update readme to include mutation reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
fangdatto committed Aug 5, 2024
1 parent 3b3976f commit e1a0a85
Show file tree
Hide file tree
Showing 4 changed files with 354 additions and 2 deletions.
315 changes: 315 additions & 0 deletions Note/mutation-report.html

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions Note/wiki.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,22 @@ https://ourcloudschool.medium.com/unit-testing-report-with-github-actions-7216f3

dotnet test --logger "trx;LogFileName=test-results.trx"

7. view artifacts

curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer token" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/ts01soonr/unit-test/actions/artifacts

8. download artifacts

curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer token" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-o test.zip \
https://api.github.com/repos/ts01soonr/unit-test/actions/artifacts/1776053532/zip



24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ This repository shows an example of dotnet with github action:
-chrome browser setup
-chrome driver setup
-multi-projects
-mutation demo
-SwaggerAPI


# Enviroment:
Expand All @@ -21,13 +23,25 @@ ubuntu-latest, .NET6, Chrome Browser v125 and Chrome Driver v125.0.x
uses: browser-actions/setup-chrome@v1
with:
# Optional: do not specify to match Chrome's version
chrome-version: '125'
chrome-version: '127'

- name: Setup Chrome-driver
uses: nanasess/setup-chromedriver@v2
with:
# Optional: do not specify to match Chrome's version
chromedriver-version: '125.0.6422.14100'
chromedriver-version: '127'

- name: stryker-mutator .NET
uses: stryker-mutator/github-action@v0.0.1
with:
testProject: "Solution/TestPalindrome/" # required
breakAt: "75" # Optional

- name: Stryker-Html-Report
uses: actions/upload-artifact@v3
with:
name: html-report
path: ${{github.workspace}}/Solution/TestPalindrome/StrykerOutput/**/**/*.html

# Update Permission for report (dotnet-trx):

Expand All @@ -52,6 +66,12 @@ ubuntu-latest, .NET6, Chrome Browser v125 and Chrome Driver v125.0.x
- SocketDemo
- RestSharpAPI
- AppiumTest
- Palindrome (Mutation via stryker.Net )
- TestPalindrome
- EntityFrameworkCore.MySQL

# Mutation Test Report
![App Screenshot](/img/stryker.Net.png)

# Test Report
![App Screenshot](/img/report.png)
Expand Down
Binary file added img/stryker.Net.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e1a0a85

Please sign in to comment.