Skip to content
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

Issue 620 add stryker #75

Open
wants to merge 6 commits into
base: the-one
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ jobs:
strategy:
matrix:
version:
- 20
- 21
- 22
- 20
- 21
- 22
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.version }}
Expand All @@ -95,6 +95,31 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
flag-name: property-test-${{ matrix.version }}
mutation:
runs-on: ubuntu-latest
needs:
- unit-test
- integration
- property
strategy:
matrix:
version:
- 20
- 21
- 22
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.version }}
uses: actions/setup-node@v4.0.3
with:
node-version: ${{ matrix.version }}
cache: 'npm'
cache-dependency-path: |
package-lock.json
- run: npm ci
- run: npm run language
- run: sed -i 's/testFileNames\.forEach/testFileNames\.files\.forEach/' node_modules/@stryker-mutator/mocha-runner/dist/src/mocha-test-runner.js
- run: npm run mutation
end:
runs-on: ubuntu-latest
needs:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
/result.*
/src/**/*.js
/index.js

# stryker temp files
.stryker-tmp
/reports/
3 changes: 2 additions & 1 deletion .nycrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"src/logger/logger.ts",
"src/helper/static-implements.ts",
"src/open-api/open-api.ts",
"src/result-map.ts"
"src/result-map.ts",
"src/locales/*.ts"
],
"include": ["src/**/*.ts"]
}
5 changes: 4 additions & 1 deletion integration/iab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
import 'mocha';
import {
spawn,
ChildProcess,
} from 'child_process';
import url from 'url';
import Counter from '../src/helper/counter';
Expand All @@ -22,15 +23,17 @@ const WAIT_DELAY = 2500;
const SETUP_TIMEOUT = 10000;

describe('iab-cli', function() {
let server: ChildProcess;
before(() => {
spawn('node', [
server = spawn('node', [
__dirname + '../fixtures/server.cjs',
'48912',
],);
Counter.clear();
},);
after(() => {
Counter.clear();
server.kill();
},);
beforeEach(() => {
prepareTempDir();
Expand Down
Loading
Loading