Skip to content

Commit

Permalink
Merge pull request #2340 from stryker-mutator/epic/mutation-switching
Browse files Browse the repository at this point in the history
Implement mutation switching
  • Loading branch information
nicojs committed Oct 7, 2020
2 parents eda8528 + e632d1e commit 212c268
Show file tree
Hide file tree
Showing 1,225 changed files with 67,661 additions and 48,294 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
@@ -1,4 +1,4 @@
[{*.ts,*.js,*jsx,*tsx,*.json,*.code-workspace}]
[{*.ts,*.js,*jsx,*tsx,*.json,,*.jsonc,*.code-workspace}]
insert_final_newline = true
indent_style = space
indent_size = 2
Expand Down
22 changes: 13 additions & 9 deletions .eslintrc.js
Expand Up @@ -11,10 +11,17 @@ module.exports = {
plugins: ['@typescript-eslint', 'prettier', 'import'],
rules: {
'import/newline-after-import': 1,
'import/order': ["error", { "newlines-between": "always", "groups": ["builtin", ["external", "internal"], "parent", "sibling", "index"] }],
'import/order': [
"error",
{
"newlines-between": "always-and-inside-groups",
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"]
}
],
'prettier/prettier': ['error'],
'sort-imports': 'off', // No auto-fix!
'sort-imports': 'off',
'no-case-declarations': 'off',
'no-constant-condition': 'error',
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/array-type': [
'error',
Expand All @@ -23,13 +30,10 @@ module.exports = {
}
],
'@typescript-eslint/await-thenable': 'off',
'@typescript-eslint/ban-ts-ignore': 'error',
'@typescript-eslint/ban-types': 'error',
'brace-style': 'off',
'@typescript-eslint/brace-style': 'error',
camelcase: 'off',
'@typescript-eslint/camelcase': 'error',
'@typescript-eslint/class-name-casing': 'error',
camelcase: 'error',
'@typescript-eslint/consistent-type-assertions': 'error',
'@typescript-eslint/consistent-type-definitions': 'error',
'@typescript-eslint/explicit-function-return-type': 'off',
Expand All @@ -39,11 +43,10 @@ module.exports = {
'@typescript-eslint/generic-type-naming': 'off',
indent: 'off',
'@typescript-eslint/indent': 'off',
'@typescript-eslint/interface-name-prefix': ['error', 'never'],
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/member-naming': 'error',
'@typescript-eslint/member-ordering': 'off',
'no-array-constructor': 'off',
'no-array-constructor': 'error',
'no-duplicate-case': 'error',
'@typescript-eslint/no-array-constructor': 'error',
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': 'off',
Expand All @@ -56,6 +59,7 @@ module.exports = {
'@typescript-eslint/no-for-in-array': 'error',
'@typescript-eslint/no-inferrable-types': 'off',
'no-magic-numbers': 'off',
'no-fallthrough': 'off',
'@typescript-eslint/no-magic-numbers': 'off',
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-misused-promises': 'off',
Expand Down
7 changes: 2 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.md
Expand Up @@ -15,11 +15,8 @@ assignees: ''

<!--- Please place your stryker config below. Feel free to change paths in the files and mutate arrays if you cannot share them. -->

```js
module.exports = function(config){
config.set({
....
});
```json
{
}
```

Expand Down
52 changes: 6 additions & 46 deletions .github/workflows/mutation-testing.yml
@@ -1,75 +1,35 @@
name: mutation testing

on:
workflow_dispatch:
push:
branches:
- master
- test/**

jobs:
core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install & Build
run: |
npm install
npm run build
- name: Run Stryker
run: npx lerna run --scope "@stryker-mutator/core" --concurrency 1 --stream stryker
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

plugins-1:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install & Build
run: |
npm install
npm run build
- name: Run Stryker
run: npx lerna run --scope "@stryker-mutator/{api,babel-transpiler,jasmine-framework,javascript-mutator}" --concurrency 1 --stream stryker
run: npx lerna run --scope "@stryker-mutator/core" --concurrency 1 --stream stryker -- -- --concurrency 3
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

plugins-2:
dependencies_and_plugins:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install & Build
run: |
npm install
npm run build
- name: Run Stryker
run: npx lerna run --scope "@stryker-mutator/{jasmine-runner,jest-runner,karma-runner,mocha-framework,mocha-runner}" --concurrency 1 --stream stryker
run: npx lerna run --scope "@stryker-mutator/{api,instrumenter,util,typescript-checker,jest-runner,karma-runner,mocha-runner,jasmine-runner}" --concurrency 1 --stream stryker -- -- --concurrency 3
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

plugins-3:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install & Build
run: |
npm install
npm run build
- name: Run Stryker
run: npx lerna run --scope "@stryker-mutator/{typescript,vue-mutator,webpack-transpiler,wct-runner,util}" --concurrency 1 --stream stryker
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
4 changes: 3 additions & 1 deletion .github/workflows/performance.yml
Expand Up @@ -13,7 +13,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies
run: npm install
- name: Build packages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Expand Up @@ -18,4 +18,4 @@ jobs:
- name: Build
run: npm run build
- name: Release
run: npx lerna publish from-git --yes
run: npx lerna publish from-git --yes --pre-dist-tag next
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -24,6 +24,9 @@ packages/*/src/**/*.js
packages/*/test/**/*.js
packages/*/src/**/*.d.ts
packages/*/test/**/*.d.ts
packages/*/dist
e2e/test/*/dist
e2e/test/*/dist-test
.idea
*.iml
*.tmp.txt
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
@@ -1,3 +1,3 @@
[submodule "perf/test/express"]
path = perf/test/express
url = git@github.com:expressjs/express.git
url = https://github.com/expressjs/express.git
7 changes: 4 additions & 3 deletions .prettierrc
@@ -1,4 +1,5 @@
{
"printWidth": 150,
"singleQuote": true
}
'printWidth': 150,
'singleQuote': true,
'endOfLine': 'auto',
}
Binary file modified .travis/Stryker.db
Binary file not shown.
15 changes: 9 additions & 6 deletions .vscode/launch.json
Expand Up @@ -4,6 +4,15 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${file}",
"skipFiles": [
"<node_internals>/**"
]
},
{
"type": "node",
"request": "launch",
Expand Down Expand Up @@ -60,12 +69,6 @@
],
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceRoot}\\packages\\stryker-mocha-runner\""
},
{
"type": "node",
"request": "attach",
Expand Down

0 comments on commit 212c268

Please sign in to comment.