-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(html-reporter): use mutation-testing-elements
Implement new report using the new [mutation-testing-elements](https://github.com/stryker-mutator/mutation-testing-elements/tree/master/packages/mutation-testing-elements#readme). Dropped support for older browsers as well as Edge. Chromium and firefox browsers are supported.
- Loading branch information
Showing
66 changed files
with
240 additions
and
2,617 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,12 @@ | ||
import * as chai from 'chai'; | ||
import { fsAsPromised } from '@stryker-mutator/util'; | ||
import * as chaiAsPromised from 'chai-as-promised'; | ||
chai.use(chaiAsPromised); | ||
const expect = chai.expect; | ||
const expectFileExists = (path: string) => expect(fsAsPromised.exists(path), `File ${path} does not exist`).to.eventually.eq(true); | ||
import { expectScoreResult } from '../../../helpers'; | ||
|
||
describe('Verify stryker has ran correctly', () => { | ||
|
||
describe('html reporter', () => { | ||
|
||
it('should report in html files', () => { | ||
return Promise.all([ | ||
expectFileExists('reports/mutation/html/Add.js.html'), | ||
expectFileExists('reports/mutation/html/Circle.js.html'), | ||
expectFileExists('reports/mutation/html/index.html') | ||
]); | ||
}); | ||
|
||
it('should copy over the resources', () => { | ||
return Promise.all([ | ||
expectFileExists('reports/mutation/html/strykerResources/stryker/stryker.css'), | ||
expectFileExists('reports/mutation/html/strykerResources/stryker.js'), | ||
expectFileExists('reports/mutation/html/strykerResources/stryker/stryker-80x80.png'), | ||
expectFileExists('reports/mutation/html/strykerResources/bootstrap/css/bootstrap.min.css'), | ||
expectFileExists('reports/mutation/html/strykerResources/bootstrap/js/bootstrap.min.js'), | ||
expectFileExists('reports/mutation/html/strykerResources/highlightjs/styles/default.css') | ||
]); | ||
it('should report correct score', async () => { | ||
await expectScoreResult({ | ||
killed: 16, | ||
mutationScore: 64, | ||
survived: 9 | ||
}); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,13 @@ | ||
import * as chai from 'chai'; | ||
import { fsAsPromised } from '@stryker-mutator/util'; | ||
import * as chaiAsPromised from 'chai-as-promised'; | ||
chai.use(chaiAsPromised); | ||
const expect = chai.expect; | ||
const expectFileExists = (path: string) => expect(fsAsPromised.exists(path), `File ${path} does not exist`).to.eventually.eq(true); | ||
import { expectScoreResult } from '../../../helpers'; | ||
|
||
describe('Verify stryker has ran correctly', () => { | ||
|
||
describe('html reporter', () => { | ||
|
||
it('should report in html files', () => { | ||
return Promise.all([ | ||
expectFileExists('reports/mutation/html/Add.js.html'), | ||
expectFileExists('reports/mutation/html/Circle.js.html'), | ||
expectFileExists('reports/mutation/html/index.html') | ||
]); | ||
}); | ||
|
||
it('should copy over the resources', () => { | ||
return Promise.all([ | ||
expectFileExists('reports/mutation/html/strykerResources/stryker/stryker.css'), | ||
expectFileExists('reports/mutation/html/strykerResources/stryker.js'), | ||
expectFileExists('reports/mutation/html/strykerResources/stryker/stryker-80x80.png'), | ||
expectFileExists('reports/mutation/html/strykerResources/bootstrap/css/bootstrap.min.css'), | ||
expectFileExists('reports/mutation/html/strykerResources/bootstrap/js/bootstrap.min.js'), | ||
expectFileExists('reports/mutation/html/strykerResources/highlightjs/styles/default.css') | ||
]); | ||
it('should report correct score', async () => { | ||
await expectScoreResult({ | ||
killed: 16, | ||
mutationScore: 64, | ||
noCoverage: 6, | ||
survived: 3 | ||
}); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,13 @@ | ||
import * as chai from 'chai'; | ||
import { fsAsPromised } from '@stryker-mutator/util'; | ||
import * as chaiAsPromised from 'chai-as-promised'; | ||
chai.use(chaiAsPromised); | ||
const expect = chai.expect; | ||
const expectFileExists = (path: string) => expect(fsAsPromised.exists(path), `File ${path} does not exist`).to.eventually.eq(true); | ||
import { expectScoreResult } from '../../../helpers'; | ||
|
||
describe('Verify stryker has ran correctly', () => { | ||
|
||
describe('html reporter', () => { | ||
|
||
it('should report in html files', () => { | ||
return Promise.all([ | ||
expectFileExists('reports/mutation/html/Add.js.html'), | ||
expectFileExists('reports/mutation/html/Circle.js.html'), | ||
expectFileExists('reports/mutation/html/index.html') | ||
]); | ||
}); | ||
|
||
it('should copy over the resources', () => { | ||
return Promise.all([ | ||
expectFileExists('reports/mutation/html/strykerResources/stryker/stryker.css'), | ||
expectFileExists('reports/mutation/html/strykerResources/stryker.js'), | ||
expectFileExists('reports/mutation/html/strykerResources/stryker/stryker-80x80.png'), | ||
expectFileExists('reports/mutation/html/strykerResources/bootstrap/css/bootstrap.min.css'), | ||
expectFileExists('reports/mutation/html/strykerResources/bootstrap/css/bootstrap.min.css'), | ||
expectFileExists('reports/mutation/html/strykerResources/highlightjs/styles/default.css') | ||
]); | ||
it('should report correct score', async () => { | ||
await expectScoreResult({ | ||
killed: 16, | ||
mutationScore: 64, | ||
noCoverage: 0, | ||
survived: 9 | ||
}); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,12 @@ | ||
import * as chai from 'chai'; | ||
import { fsAsPromised } from '@stryker-mutator/util'; | ||
import * as chaiAsPromised from 'chai-as-promised'; | ||
chai.use(chaiAsPromised); | ||
const expect = chai.expect; | ||
const expectFileExists = (path: string) => expect(fsAsPromised.exists(path), `File ${path} does not exist`).to.eventually.eq(true); | ||
import { expectScoreResult } from '../../../helpers'; | ||
|
||
describe('Verify stryker has ran correctly', () => { | ||
|
||
describe('html reporter', () => { | ||
|
||
it('should report in html files', () => { | ||
return Promise.all([ | ||
expectFileExists('reports/mutation/html/Add.ts.html'), | ||
expectFileExists('reports/mutation/html/Circle.ts.html'), | ||
expectFileExists('reports/mutation/html/index.html') | ||
]); | ||
}); | ||
|
||
it('should copy over the resources', () => { | ||
return Promise.all([ | ||
expectFileExists('reports/mutation/html/strykerResources/stryker/stryker.css'), | ||
expectFileExists('reports/mutation/html/strykerResources/stryker.js'), | ||
expectFileExists('reports/mutation/html/strykerResources/stryker/stryker-80x80.png'), | ||
expectFileExists('reports/mutation/html/strykerResources/bootstrap/css/bootstrap.min.css'), | ||
expectFileExists('reports/mutation/html/strykerResources/bootstrap/css/bootstrap.min.css'), | ||
expectFileExists('reports/mutation/html/strykerResources/highlightjs/styles/default.css') | ||
]); | ||
it('should report correct score', async () => { | ||
await expectScoreResult({ | ||
killed: 18, | ||
mutationScore: 66.67, | ||
survived: 9 | ||
}); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.