Skip to content

Commit

Permalink
Base structure for selecting operators individually (#14)
Browse files Browse the repository at this point in the history
* Added project to test on

* Add level to the config and read it from code

* Move the debugging to the test project

* Add mutation levels CLI argument, fix lint

* Move testing-project back outside packages folder

* Check if pipeline is fixed

* Remove last change, there is something wrong with the pipeline environment

* Modify mutation levels config file to reflect the submutators

* Update meta config such that types are generated instead of strings

* Add back comment inside instrumenter launch file

* Trigger e2e and incremental_mutation_test workflows only on `master` push

---------

Co-authored-by: luctia <[email protected]>
  • Loading branch information
2 people authored and Ja4pp committed Jan 14, 2024
1 parent d51d612 commit 12047ba
Show file tree
Hide file tree
Showing 49 changed files with 23,599 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/packages/*/reports/**
/packages/*/coverage/**
/packages/grunt-stryker/tasks/**
/testing-project/*

# e2e is linted in the e2e package
/e2e
55 changes: 54 additions & 1 deletion .github/workflows/mutation-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,57 @@ jobs:
- name: Run Stryker
run: npx lerna run --scope "@stryker-mutator/typescript-checker" --concurrency 1 --stream stryker -- --concurrency 2
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

incremental_mutation_test:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Download incremental reports
run: npm run download-incremental-reports
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
- name: Run stryker run --incremental
run: npm run test:mutation:incremental
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

e2e:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-latest']
steps:
# https://github.com/ryanclark/karma-webpack/issues/494
- name: Windows temp dir fix
run: |
echo TEMP="D:\Temp" >> $env:GITHUB_ENV
echo TMP="D:\Temp" >> $env:GITHUB_ENV
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install dependencies
run: npm ci || npm ci # retry once, install on windows is flaky...
- name: Build packages
run: npm run build
- name: e2e install
run: 'npm run e2e:install'
- name: e2e lint
run: 'npm run e2e:lint'
- name: Run e2e tests
run: 'npm run e2e:run'
- uses: actions/upload-artifact@v3
if: failure()
with:
name: e2e-reports
path: |
e2e/test/*/reports/mutation/
e2e/test/*/stryker.log
20 changes: 20 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 12047ba

Please sign in to comment.