Skip to content

Commit

Permalink
Initial support of mutation testing with stryker-js (#3591)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 15, 2022
1 parent 0dc2d20 commit e3aaab0
Show file tree
Hide file tree
Showing 8 changed files with 1,921 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .c8rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"src/utilities/typedQueryDocumentNode.ts"
],
"clean": true,
"temp-directory": "coverage",
"report-dir": "coverage",
"report-dir": "reports/coverage",
"skip-full": true,
"reporter": ["html", "text"],
"check-coverage": true,
Expand Down
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Copied from '.gitignore', please keep it in sync.
/.eslintcache
/.docusaurus
/.stryker-tmp
/node_modules
/coverage
/reports
/npmDist
/denoDist
/websiteDist
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/mutation-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Mutation Testing
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # run once every day at 00:00 UTC
jobs:
lint:
name: Run mutation testing
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v2
with:
cache: npm
node-version-file: '.node-version'

- name: Install Dependencies
run: npm ci --ignore-scripts

- name: Run mutation testing
run: npm run testonly:mutate

- name: Upload mutation testing report
uses: actions/upload-artifact@v2
with:
name: mutationTestingReport
path: ./reports/mutation/mutation.html
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
/.eslintcache
/.cspellcache
/.docusaurus
/.stryker-tmp
/node_modules
/coverage
/reports
/npmDist
/denoDist
/websiteDist
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
/diff-npm-package.html
/.eslintcache
/.docusaurus
/.stryker-tmp
/node_modules
/coverage
/reports
/npmDist
/denoDist
/websiteDist

0 comments on commit e3aaab0

Please sign in to comment.