update --nocoverage option

This commit is contained in:
2017-07-28 01:21:37 +02:00
parent 83b324054a
commit 25993bd66f
8 changed files with 43 additions and 45 deletions

2
dist/mod02/index.js vendored
View File

@ -110,7 +110,7 @@ exports.run = function (configArg) {
plugins.beautylog.ora.text('now starting tests');
plugins.beautylog.ora.end();
plugins.beautylog.log('ready for tapbuffer:');
if (configArg.coverage) {
if (configArg.testConfig.coverage) {
tap(config)
.then(handleCoverageData)
.then(() => {

View File

@ -1,3 +1,4 @@
import { ITapbufferConfig } from 'tapbuffer';
/**
* specifies the different modes available
* default -> uses default options no matterm what
@ -7,13 +8,12 @@
export declare type npmtsMode = 'default' | 'custom' | 'merge';
export interface INpmtsConfig {
argv: any;
coverage: boolean;
coverageTreshold: number;
checkDependencies: boolean;
mode: npmtsMode;
test: boolean;
testTs: any;
testConfig: any;
testConfig: ITapbufferConfig;
ts: any;
tsOptions: any;
watch: boolean;

View File

@ -7,14 +7,14 @@ exports.run = function (argvArg) {
let done = q.defer();
let defaultConfig = {
argv: undefined,
coverage: true,
coverageTreshold: 70,
checkDependencies: true,
mode: 'default',
test: true,
testTs: {},
testConfig: {
parallel: true
parallel: true,
coverage: true
},
ts: {},
tsOptions: {},
@ -53,7 +53,7 @@ exports.run = function (argvArg) {
config.test = false;
}
if (config.argv.nocoverage) {
config.coverage = false;
config.testConfig.coverage = false;
}
if (config.argv.nochecks) {
config.checkDependencies = false;