stryker-api
Advanced tools
Comparing version 0.3.0-rc5 to 0.3.0-rc6
{ | ||
"name": "stryker-api", | ||
"version": "0.3.0-rc5", | ||
"version": "0.3.0-rc6", | ||
"description": "The api for the extendable JavaScript mutation testing framework Stryker", | ||
"scripts": { | ||
"test": "grunt test", | ||
"start": "concurrently \"npm run tsc:w\" \"grunt serve\"", | ||
"tsc:w": "tsc -w", | ||
@@ -38,4 +37,3 @@ "preversion": "grunt" | ||
"chai": "^3.4.1", | ||
"chai-as-promised": "^5.2.0", | ||
"concurrently": "^2.0.0", | ||
"chai-as-promised": "^6.0.0", | ||
"grunt": "^1.0.1", | ||
@@ -46,3 +44,3 @@ "grunt-cli": "^1.2.0", | ||
"grunt-mocha-istanbul": "^5.0.1", | ||
"grunt-mocha-test": "^0.12.7", | ||
"grunt-mocha-test": "^0.13.2", | ||
"grunt-ts": "^6.0.0-beta.3", | ||
@@ -49,0 +47,0 @@ "grunt-tslint": "^3.2.1", |
@@ -7,3 +7,3 @@ /** | ||
* Creates a code fragment which, if included in a test run, | ||
* is run before a particular test is run. | ||
* is ran before a particular test is run. | ||
*/ | ||
@@ -13,7 +13,7 @@ beforeEach(codeFragment: string): string; | ||
* Creates a code fragment which, if included in a test run, | ||
* is run before a particular test is run. | ||
* is ran before a particular test is run. | ||
*/ | ||
afterEach(codeFragment: string): string; | ||
/** | ||
* Creates a code fragment which, in included in a test run, | ||
* Creates a code fragment which, if included in a test run, | ||
* will be responsible for filtering out tests with given ids. | ||
@@ -20,0 +20,0 @@ * The first test gets id 0, the second id 1, etc. |
import TestStatus from './TestStatus'; | ||
/** | ||
* Indicates the result of single test | ||
* Indicates the result of a single test | ||
*/ | ||
@@ -15,10 +15,10 @@ interface TestResult { | ||
/** | ||
* Optional: any error messages | ||
* The time it took to run the test | ||
*/ | ||
errorMessages?: string[]; | ||
timeSpentMs: number; | ||
/** | ||
* Optional: the time it took | ||
* Optional: messages in case of status: Failed | ||
*/ | ||
timeSpentMs?: number; | ||
failureMessages?: string[]; | ||
} | ||
export default TestResult; |
@@ -10,5 +10,5 @@ /// <reference types="node" /> | ||
* A test runner should: | ||
* - Report per a `testResult` per test. See `TestResult` interfact to know what is expected. | ||
* - Emit `'test_done'` event with a TestResult as argument every time a test is executed (for reporting purposes) | ||
* - Report on code coverage after the initial test run (maybe, see below) | ||
* - Report per a `testResult` per test. See `TestResult` interface to know what is expected. | ||
* - Emit a `'test_done'` event with a TestResult as an argument every time a test is executed (for reporting purposes). | ||
* - Report on code coverage after the initial test run (maybe, see below). | ||
* | ||
@@ -33,7 +33,7 @@ * ## A note on code coverage: | ||
* At the end of the test run, the code coverage report is ready in a global variable called `__coverage__`. Node based test runners | ||
* which run there tests in the same process as the test runner is spawned in actually don't have to do any work, Stryker will be able | ||
* which run their tests in the same process as the test runner is spawned in actually don't have to do any work, Stryker will be able | ||
* to pick up the report globally. However, if running in worker processes or a browser, it is the test runner's responsibility to | ||
* report the `__coverage__` at the end of the test run. | ||
* | ||
* If it doesn't exists globally, you don't have to do anything. In that case its not an initial test run and there was no code instrumented. | ||
* If it doesn't exists globally, you don't have to do anything. In that case it's not an initial test run and there was no code instrumented. | ||
*/ | ||
@@ -40,0 +40,0 @@ interface TestRunner extends EventEmitter { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
23
108568