New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stryker-api

Package Overview
Dependencies
Maintainers
3
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stryker-api - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

src/core/MutationScoreThresholds.d.ts

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

<a name="0.7.0"></a>
# [0.7.0](https://github.com/stryker-mutator/stryker/compare/stryker-api@0.6.0...stryker-api@0.7.0) (2017-08-11)
### Features
* **ci-integration:** Configurable thresholds based on mutation score (#355) ([93f28cc](https://github.com/stryker-mutator/stryker/commit/93f28cc)), closes [#220](https://github.com/stryker-mutator/stryker/issues/220)
<a name="0.6.0"></a>

@@ -8,0 +19,0 @@ # [0.6.0](https://github.com/stryker-mutator/stryker/compare/stryker-api@0.5.6...stryker-api@0.6.0) (2017-08-04)

1

core.d.ts

@@ -8,1 +8,2 @@ export { default as StrykerOptions } from './src/core/StrykerOptions';

export { default as InputFileDescriptor } from './src/core/InputFileDescriptor';
export { default as MutationScoreThresholds } from './src/core/MutationScoreThresholds';

4

package.json
{
"name": "stryker-api",
"version": "0.6.0",
"version": "0.7.0",
"description": "The api for the extendable JavaScript mutation testing framework Stryker",

@@ -10,3 +10,3 @@ "scripts": {

"postbuild": "tslint -p tsconfig.json",
"test": "nyc mocha \"test/**/*.js\""
"test": "nyc --reporter=html --report-dir=reports/coverage --check-coverage --lines 90 --functions 68 --branches 64 mocha \"test/**/*.js\""
},

@@ -13,0 +13,0 @@ "repository": {

@@ -1,2 +0,2 @@

import { StrykerOptions, InputFileDescriptor } from '../../core';
import { StrykerOptions, InputFileDescriptor, MutationScoreThresholds } from '../../core';
export default class Config implements StrykerOptions {

@@ -16,3 +16,4 @@ [customConfig: string]: any;

maxConcurrentTestRunners: number;
thresholds: MutationScoreThresholds;
set(newConfig: StrykerOptions): void;
}

@@ -13,2 +13,7 @@ "use strict";

this.maxConcurrentTestRunners = Infinity;
this.thresholds = {
high: 80,
low: 60,
break: null
};
}

@@ -19,3 +24,5 @@ Config.prototype.set = function (newConfig) {

Object.keys(newConfig).forEach(function (key) {
_this[key] = newConfig[key];
if (typeof newConfig[key] !== 'undefined') {
_this[key] = newConfig[key];
}
});

@@ -22,0 +29,0 @@ }

import InputFileDescriptor from './InputFileDescriptor';
import MutationScoreThresholds from './MutationScoreThresholds';
interface StrykerOptions {

@@ -41,4 +42,8 @@ [customConfig: string]: any;

/**
* Thresholds for mutation score.
*/
thresholds?: Partial<MutationScoreThresholds>;
/**
* Indicates which coverage analysis strategy to use.
* During mutation testion, stryker will try to only run the tests that cover a particular line of code.
* During mutation testing, stryker will try to only run the tests that cover a particular line of code.
*

@@ -57,3 +62,3 @@ * 'perTest' (default): Analyse coverage per test.

/**
* The log4js loglevel. Possible values: fatal, error, warn, info, debug, trace, all and off. Default is "info"
* The log4js log level. Possible values: fatal, error, warn, info, debug, trace, all and off. Default is "info"
*/

@@ -75,3 +80,3 @@ logLevel?: string;

* The starting port to used for test frameworks that need to run a server (for example karma).
* If more test runners will run simultaniously, subsequent port numbers will be used (n+1, n+2, etc.)
* If more test runners will run simultaneously, subsequent port numbers will be used (n+1, n+2, etc.)
*/

@@ -78,0 +83,0 @@ port?: number;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc