diff --git a/assets/index.js b/assets/index.js index b732f36..9e21923 100644 --- a/assets/index.js +++ b/assets/index.js @@ -9,5 +9,6 @@ const drone = require ('./drone'); const jasmine = require ('./jasmine'); +const stryker = require ('./stryker'); -module.exports = { drone, jasmine }; +module.exports = { drone, jasmine, stryker }; diff --git a/assets/stryker.js b/assets/stryker.js new file mode 100644 index 0000000..68f9db7 --- /dev/null +++ b/assets/stryker.js @@ -0,0 +1,29 @@ +/* + * Copyright (C) Sapphirecode - All Rights Reserved + * This file is part of standard which is released under MIT. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , October 2020 + */ + +'use strict'; + +module.exports = `'use strict'; + +/** + * @type {import('@stryker-mutator/api/core').StrykerOptions} + */ +module.exports = { + mutator: 'javascript', + packageManager: 'yarn', + reporters: [ + 'clear-text', + 'progress' + ], + testRunner: 'jasmine', + testFramework: 'jasmine', + jasmineConfigFile: 'jasmine.json', + transpilers: [], + coverageAnalysis: 'perTest', + mutate: [ 'index.js' ] +}; +`; diff --git a/package.json b/package.json index 89132d0..8c8a807 100644 --- a/package.json +++ b/package.json @@ -31,4 +31,4 @@ "*.d.ts", "assets/*.js" ] -} +} \ No newline at end of file