forked from juice-shop/juice-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stryker.server-conf.js
29 lines (28 loc) · 1.02 KB
/
stryker.server-conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module.exports = function (config) {
'use strict'
config.set({
files: [
{ pattern: 'data/*.js', mutated: true, included: false },
{ pattern: 'lib/*.js', mutated: true, included: false },
{ pattern: 'models/*.js', mutated: true, included: false },
{ pattern: 'routes/*.js', mutated: true, included: false },
{ pattern: 'encryptionkeys/**', included: false, mutated: false },
{ pattern: 'config/default.yml', included: false, mutated: false },
{ pattern: 'app/index.html', included: false, mutated: false },
{ pattern: 'package.json', included: false, mutated: false },
{ pattern: 'ctf.key', included: false, mutated: false },
'test/server/*Spec.js'
],
testRunner: 'mocha',
testFramework: 'mocha',
coverageAnalysis: 'perTest',
mutator: 'javascript',
reporter: ['html', 'progress'],
htmlReporter: {
baseDir: 'build/reports/mutation/server'
}
})
if (process.env.TRAVIS_BUILD_NUMBER) {
config.reporter = ['clear-text', 'progress']
}
}