Comparing version 0.8.0 to 0.9.0
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
<a name="0.9.0"></a> | ||
# [0.9.0](https://github.com/stryker-mutator/stryker/compare/stryker@0.8.0...stryker@0.9.0) (2017-08-25) | ||
### Bug Fixes | ||
* **MochaTestRunner:** Exit with a warning if no tests were executed (#360) ([ac52860](https://github.com/stryker-mutator/stryker/commit/ac52860)) | ||
### Code Refactoring | ||
* change ConfigWriter interface name to ConfigEditor (#357) ([ec4ae03](https://github.com/stryker-mutator/stryker/commit/ec4ae03)) | ||
### BREAKING CHANGES | ||
* Public api for `ConfigWriter` is renamed to `ConfigEditor`. The corresponding `write` method is renamed to `edit`. If you're using custom `ConfigWriter` plugins you should rename the `write` method to `edit`. Please update the `stryker-mocha-framework` and `stryker-karma-runner` to the latest versions as they provide the new `ConfigEditor` plugin. | ||
<a name="0.8.0"></a> | ||
@@ -7,0 +28,0 @@ # [0.8.0](https://github.com/stryker-mutator/stryker/compare/stryker@0.7.0...stryker@0.8.0) (2017-08-11) |
{ | ||
"name": "stryker", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "The extendable JavaScript mutation testing framework", | ||
@@ -9,3 +9,3 @@ "main": "src/Stryker.js", | ||
"start": "tsc -w", | ||
"prebuild": "rimraf \"+(test|src)/**/*+(.d.ts|.js|.map)\" coverage testResources/module/node_modules/stryker", | ||
"prebuild": "rimraf \"+(test|src)/**/*+(.d.ts|.js|.map)\" .nyc_output reports coverage testResources/module/node_modules/stryker", | ||
"build": "tsc -p .", | ||
@@ -77,7 +77,7 @@ "postbuild": "tslint -p tsconfig.json", | ||
"@types/inquirer": "0.0.33", | ||
"stryker-api": "^0.7.0" | ||
"stryker-api": "^0.8.0" | ||
}, | ||
"peerDependencies": { | ||
"stryker-api": "^0.7.0" | ||
"stryker-api": "^0.8.0" | ||
} | ||
} |
@@ -27,3 +27,3 @@ import { Config } from 'stryker-api/config'; | ||
private wrapUpReporter(); | ||
private applyConfigWriters(); | ||
private applyConfigEditors(); | ||
private freezeConfig(); | ||
@@ -30,0 +30,0 @@ private logInitialTestRunSucceeded(tests); |
@@ -44,3 +44,3 @@ 'use strict'; | ||
this.loadPlugins(); | ||
this.applyConfigWriters(); | ||
this.applyConfigEditors(); | ||
this.setGlobalLogLevel(); // logLevel could be changed | ||
@@ -70,5 +70,9 @@ this.freezeConfig(); | ||
_a = _b.sent(), runResult = _a.runResult, sandboxCoordinator = _a.sandboxCoordinator; | ||
if (!(runResult && inputFiles && sandboxCoordinator)) return [3 /*break*/, 7]; | ||
if (!(runResult.tests.length === 0)) return [3 /*break*/, 3]; | ||
log.warn('No tests were executed. Stryker will exit prematurely. Please check your configuration.'); | ||
return [2 /*return*/, []]; | ||
case 3: | ||
if (!(runResult && inputFiles && sandboxCoordinator)) return [3 /*break*/, 8]; | ||
return [4 /*yield*/, this.generateAndRunMutations(inputFiles, runResult, sandboxCoordinator)]; | ||
case 3: | ||
case 4: | ||
mutantResults = _b.sent(); | ||
@@ -79,12 +83,12 @@ score = ScoreResultCalculator_1.default.calculate(mutantResults); | ||
return [4 /*yield*/, this.wrapUpReporter()]; | ||
case 4: | ||
case 5: | ||
_b.sent(); | ||
return [4 /*yield*/, StrykerTempFolder_1.default.clean()]; | ||
case 5: | ||
case 6: | ||
_b.sent(); | ||
return [4 /*yield*/, this.logDone()]; | ||
case 6: | ||
case 7: | ||
_b.sent(); | ||
return [2 /*return*/, mutantResults]; | ||
case 7: throw new Error('Resulting object did not contain runResult, inputFiles or sandboxCoordinator'); | ||
case 8: throw new Error('Resulting object did not contain runResult, inputFiles or sandboxCoordinator'); | ||
} | ||
@@ -164,6 +168,6 @@ }); | ||
}; | ||
Stryker.prototype.applyConfigWriters = function () { | ||
Stryker.prototype.applyConfigEditors = function () { | ||
var _this = this; | ||
config_1.ConfigWriterFactory.instance().knownNames().forEach(function (configWriterName) { | ||
config_1.ConfigWriterFactory.instance().create(configWriterName, undefined).write(_this.config); | ||
config_1.ConfigEditorFactory.instance().knownNames().forEach(function (configEditorName) { | ||
config_1.ConfigEditorFactory.instance().create(configEditorName, undefined).edit(_this.config); | ||
}); | ||
@@ -170,0 +174,0 @@ }; |
250256
4574