-
Notifications
You must be signed in to change notification settings - Fork 751
Mutation Testing ( splitted into 2 PRs ) #4089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8370213
06d68b2
1c5a75c
19f56ea
a3caebb
e41e89a
b1649a3
32aa967
92b4e23
5387f44
0bf76dd
9616e07
53cc9c4
25ee142
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| name: Tracking PR Mutants | ||
|
|
||
| on: | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| # Mutants testing: Execute on PR on packages that have functions modified, and fail the workflow if there are missed or timeout mutations | ||
| incremental-mutants: | ||
| name: Incremental Mutants Testing | ||
|
|
||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Run filtering pr mutants from actions | ||
| uses: stacks-network/actions/mutation-testing/filter-pr@feat/mutation-testing | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| name: Logging Mutants | ||
|
|
||
| # only run on push in order to update the cache output | ||
| # flow: | ||
| # restore cache | ||
| # install cargo-mutants crate in order to run the 'cargo mutants' command | ||
| # create a file with the current commit hash if a previous one doesn't exist, then print it | ||
| # run the script that handles the 'cargo mutants' command on the differences between the latest updates and the last commit where it was ran | ||
| # overwrite the previous commit hash with the current one for the following run | ||
| # delete the old cache | ||
| # save the new cache with the updated mutants | ||
| # upload artifact to easily check it for the given commit | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| - develop | ||
| - next | ||
|
|
||
| jobs: | ||
| save_cache: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| # test | ||
| steps: | ||
| - name: Run logging mutants from actions | ||
| uses: stacks-network/actions/mutation-testing/logger@feat/mutation-testing | ||
| with: | ||
| gh-token: ${{ secrets.GITHUB_TOKEN }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,7 @@ resolver = "2" | |
|
|
||
| [lib] | ||
| name = "clarity" | ||
| path = "./src/libclarity.rs" | ||
| path = "./src/lib.rs" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Without changing this the cargo mutants command would not see the content of the files and call the mutations for them
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like a bug in |
||
|
|
||
| [dependencies] | ||
| rand = "0.7.3" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.