forked from juice-shop/juice-shop
-
Notifications
You must be signed in to change notification settings - Fork 1
/
stryker.server-conf.js
33 lines (32 loc) · 1.33 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
30
31
32
33
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: 'node_modules/**/*.js', included: false, mutated: false },
{ pattern: 'node_modules/**/*.json', included: false, mutated: false },
{ pattern: 'node_modules/sqlite3/**', included: false, mutated: false },
{ pattern: 'node_modules/libxmljs/**', included: false, mutated: 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']
}
}