update --nocoverage option
This commit is contained in:
parent
83b324054a
commit
25993bd66f
2
dist/mod02/index.js
vendored
2
dist/mod02/index.js
vendored
@ -110,7 +110,7 @@ exports.run = function (configArg) {
|
|||||||
plugins.beautylog.ora.text('now starting tests');
|
plugins.beautylog.ora.text('now starting tests');
|
||||||
plugins.beautylog.ora.end();
|
plugins.beautylog.ora.end();
|
||||||
plugins.beautylog.log('ready for tapbuffer:');
|
plugins.beautylog.log('ready for tapbuffer:');
|
||||||
if (configArg.coverage) {
|
if (configArg.testConfig.coverage) {
|
||||||
tap(config)
|
tap(config)
|
||||||
.then(handleCoverageData)
|
.then(handleCoverageData)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
4
dist/npmts.config.d.ts
vendored
4
dist/npmts.config.d.ts
vendored
@ -1,3 +1,4 @@
|
|||||||
|
import { ITapbufferConfig } from 'tapbuffer';
|
||||||
/**
|
/**
|
||||||
* specifies the different modes available
|
* specifies the different modes available
|
||||||
* default -> uses default options no matterm what
|
* default -> uses default options no matterm what
|
||||||
@ -7,13 +8,12 @@
|
|||||||
export declare type npmtsMode = 'default' | 'custom' | 'merge';
|
export declare type npmtsMode = 'default' | 'custom' | 'merge';
|
||||||
export interface INpmtsConfig {
|
export interface INpmtsConfig {
|
||||||
argv: any;
|
argv: any;
|
||||||
coverage: boolean;
|
|
||||||
coverageTreshold: number;
|
coverageTreshold: number;
|
||||||
checkDependencies: boolean;
|
checkDependencies: boolean;
|
||||||
mode: npmtsMode;
|
mode: npmtsMode;
|
||||||
test: boolean;
|
test: boolean;
|
||||||
testTs: any;
|
testTs: any;
|
||||||
testConfig: any;
|
testConfig: ITapbufferConfig;
|
||||||
ts: any;
|
ts: any;
|
||||||
tsOptions: any;
|
tsOptions: any;
|
||||||
watch: boolean;
|
watch: boolean;
|
||||||
|
6
dist/npmts.config.js
vendored
6
dist/npmts.config.js
vendored
@ -7,14 +7,14 @@ exports.run = function (argvArg) {
|
|||||||
let done = q.defer();
|
let done = q.defer();
|
||||||
let defaultConfig = {
|
let defaultConfig = {
|
||||||
argv: undefined,
|
argv: undefined,
|
||||||
coverage: true,
|
|
||||||
coverageTreshold: 70,
|
coverageTreshold: 70,
|
||||||
checkDependencies: true,
|
checkDependencies: true,
|
||||||
mode: 'default',
|
mode: 'default',
|
||||||
test: true,
|
test: true,
|
||||||
testTs: {},
|
testTs: {},
|
||||||
testConfig: {
|
testConfig: {
|
||||||
parallel: true
|
parallel: true,
|
||||||
|
coverage: true
|
||||||
},
|
},
|
||||||
ts: {},
|
ts: {},
|
||||||
tsOptions: {},
|
tsOptions: {},
|
||||||
@ -53,7 +53,7 @@ exports.run = function (argvArg) {
|
|||||||
config.test = false;
|
config.test = false;
|
||||||
}
|
}
|
||||||
if (config.argv.nocoverage) {
|
if (config.argv.nocoverage) {
|
||||||
config.coverage = false;
|
config.testConfig.coverage = false;
|
||||||
}
|
}
|
||||||
if (config.argv.nochecks) {
|
if (config.argv.nochecks) {
|
||||||
config.checkDependencies = false;
|
config.checkDependencies = false;
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
"smartstream": "^1.0.10",
|
"smartstream": "^1.0.10",
|
||||||
"smartstring": "^2.0.24",
|
"smartstring": "^2.0.24",
|
||||||
"smartsystem": "^1.0.18",
|
"smartsystem": "^1.0.18",
|
||||||
"tapbuffer": "^1.0.21",
|
"tapbuffer": "^1.0.24",
|
||||||
"through2": "^2.0.3",
|
"through2": "^2.0.3",
|
||||||
"tsn": "^2.0.15",
|
"tsn": "^2.0.15",
|
||||||
"typescript": "^2.4.2",
|
"typescript": "^2.4.2",
|
||||||
|
@ -33,7 +33,7 @@ npmts will
|
|||||||
|
|
||||||
For more information on how tests are run check out the [tapbuffer module](https://www.npmjs.com/package/tapbuffer).
|
For more information on how tests are run check out the [tapbuffer module](https://www.npmjs.com/package/tapbuffer).
|
||||||
|
|
||||||
For more information about how to best write tap tests check out the [tapbundle module's linked docs](https://www.npmjs.com/package/tapbundle)
|
For more information about how to best write tap tests check out the [tapbundle module's linked docs](https://www.npmjs.com/package/tapbundle).
|
||||||
|
|
||||||
This works on your machine and in CI. There is a prebuild docker image available that includes npmts to make CI a breeze:
|
This works on your machine and in CI. There is a prebuild docker image available that includes npmts to make CI a breeze:
|
||||||
[hosttoday/ht-docker-node:npmts on Dockerhub](https://hub.docker.com/r/hosttoday/ht-docker-node/)
|
[hosttoday/ht-docker-node:npmts on Dockerhub](https://hub.docker.com/r/hosttoday/ht-docker-node/)
|
||||||
|
@ -116,7 +116,7 @@ export let run = function (configArg: INpmtsConfig) {
|
|||||||
plugins.beautylog.ora.text('now starting tests')
|
plugins.beautylog.ora.text('now starting tests')
|
||||||
plugins.beautylog.ora.end()
|
plugins.beautylog.ora.end()
|
||||||
plugins.beautylog.log('ready for tapbuffer:')
|
plugins.beautylog.log('ready for tapbuffer:')
|
||||||
if (configArg.coverage) {
|
if (configArg.testConfig.coverage) {
|
||||||
tap(config)
|
tap(config)
|
||||||
.then(handleCoverageData)
|
.then(handleCoverageData)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
@ -3,6 +3,9 @@ import paths = require('./npmts.paths')
|
|||||||
|
|
||||||
import * as q from 'smartq'
|
import * as q from 'smartq'
|
||||||
|
|
||||||
|
// interfaces
|
||||||
|
import { ITapbufferConfig } from 'tapbuffer'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* specifies the different modes available
|
* specifies the different modes available
|
||||||
* default -> uses default options no matterm what
|
* default -> uses default options no matterm what
|
||||||
@ -13,13 +16,12 @@ export type npmtsMode = 'default' | 'custom' | 'merge'
|
|||||||
|
|
||||||
export interface INpmtsConfig {
|
export interface INpmtsConfig {
|
||||||
argv: any
|
argv: any
|
||||||
coverage: boolean
|
|
||||||
coverageTreshold: number
|
coverageTreshold: number
|
||||||
checkDependencies: boolean
|
checkDependencies: boolean
|
||||||
mode: npmtsMode
|
mode: npmtsMode
|
||||||
test: boolean
|
test: boolean
|
||||||
testTs: any
|
testTs: any
|
||||||
testConfig: any
|
testConfig: ITapbufferConfig
|
||||||
ts: any
|
ts: any
|
||||||
tsOptions: any
|
tsOptions: any
|
||||||
watch: boolean
|
watch: boolean
|
||||||
@ -33,14 +35,14 @@ export let run = function (argvArg) {
|
|||||||
let done = q.defer()
|
let done = q.defer()
|
||||||
let defaultConfig: INpmtsConfig = {
|
let defaultConfig: INpmtsConfig = {
|
||||||
argv: undefined,
|
argv: undefined,
|
||||||
coverage: true,
|
|
||||||
coverageTreshold: 70,
|
coverageTreshold: 70,
|
||||||
checkDependencies: true,
|
checkDependencies: true,
|
||||||
mode: 'default',
|
mode: 'default',
|
||||||
test: true,
|
test: true,
|
||||||
testTs: {},
|
testTs: {},
|
||||||
testConfig: {
|
testConfig: {
|
||||||
parallel: true
|
parallel: true,
|
||||||
|
coverage: true
|
||||||
},
|
},
|
||||||
ts: {},
|
ts: {},
|
||||||
tsOptions: {},
|
tsOptions: {},
|
||||||
@ -89,7 +91,7 @@ export let run = function (argvArg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (config.argv.nocoverage) {
|
if (config.argv.nocoverage) {
|
||||||
config.coverage = false
|
config.testConfig.coverage = false
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.argv.nochecks) {
|
if (config.argv.nochecks) {
|
||||||
|
58
yarn.lock
58
yarn.lock
@ -41,8 +41,8 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-3.5.2.tgz#c11cd2817d3a401b7ba0f5a420f35c56139b1c1e"
|
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-3.5.2.tgz#c11cd2817d3a401b7ba0f5a420f35c56139b1c1e"
|
||||||
|
|
||||||
"@types/chokidar@^1.7.0":
|
"@types/chokidar@^1.7.0":
|
||||||
version "1.7.0"
|
version "1.7.1"
|
||||||
resolved "https://registry.yarnpkg.com/@types/chokidar/-/chokidar-1.7.0.tgz#93c6a5c92aa866756c00aa996e4ac1c9e7057437"
|
resolved "https://registry.yarnpkg.com/@types/chokidar/-/chokidar-1.7.1.tgz#f958c073fab94c2a9c67cca11ccdb80fd5c1b488"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
|
|
||||||
@ -85,8 +85,8 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-2.2.41.tgz#e27cf0817153eb9f2713b2d3f6c68f1e1c3ca608"
|
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-2.2.41.tgz#e27cf0817153eb9f2713b2d3f6c68f1e1c3ca608"
|
||||||
|
|
||||||
"@types/node@*", "@types/node@^8.0.10":
|
"@types/node@*", "@types/node@^8.0.10":
|
||||||
version "8.0.15"
|
version "8.0.17"
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.15.tgz#8f23f8a4642ced357704d048010876fc0c7f179a"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.17.tgz#677bc8c118cfb76013febb62ede1f31d2c7222a1"
|
||||||
|
|
||||||
"@types/promises-a-plus@*":
|
"@types/promises-a-plus@*":
|
||||||
version "0.0.27"
|
version "0.0.27"
|
||||||
@ -97,8 +97,8 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@types/q/-/q-0.0.32.tgz#bd284e57c84f1325da702babfc82a5328190c0c5"
|
resolved "https://registry.yarnpkg.com/@types/q/-/q-0.0.32.tgz#bd284e57c84f1325da702babfc82a5328190c0c5"
|
||||||
|
|
||||||
"@types/q@1.x.x":
|
"@types/q@1.x.x":
|
||||||
version "1.0.2"
|
version "1.0.3"
|
||||||
resolved "https://registry.yarnpkg.com/@types/q/-/q-1.0.2.tgz#41f0b0f6ae0eeed3a51b003e2e08cba5525b74f6"
|
resolved "https://registry.yarnpkg.com/@types/q/-/q-1.0.3.tgz#08e99d20f7abfc0fe202b6d5a0921bfafcdea8d0"
|
||||||
|
|
||||||
"@types/shelljs@^0.7.2":
|
"@types/shelljs@^0.7.2":
|
||||||
version "0.7.2"
|
version "0.7.2"
|
||||||
@ -184,11 +184,11 @@ ansi-styles@^2.2.1:
|
|||||||
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
|
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
|
||||||
|
|
||||||
anymatch@^1.3.0:
|
anymatch@^1.3.0:
|
||||||
version "1.3.0"
|
version "1.3.2"
|
||||||
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.0.tgz#a3e52fa39168c825ff57b0248126ce5a8ff95507"
|
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a"
|
||||||
dependencies:
|
dependencies:
|
||||||
arrify "^1.0.0"
|
|
||||||
micromatch "^2.1.5"
|
micromatch "^2.1.5"
|
||||||
|
normalize-path "^2.0.0"
|
||||||
|
|
||||||
aproba@^1.0.3:
|
aproba@^1.0.3:
|
||||||
version "1.1.2"
|
version "1.1.2"
|
||||||
@ -233,10 +233,6 @@ array-unique@^0.2.1:
|
|||||||
version "0.2.1"
|
version "0.2.1"
|
||||||
resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53"
|
resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53"
|
||||||
|
|
||||||
arrify@^1.0.0:
|
|
||||||
version "1.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
|
|
||||||
|
|
||||||
asn1@~0.2.3:
|
asn1@~0.2.3:
|
||||||
version "0.2.3"
|
version "0.2.3"
|
||||||
resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86"
|
resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86"
|
||||||
@ -292,8 +288,8 @@ babel-messages@^6.23.0:
|
|||||||
babel-runtime "^6.22.0"
|
babel-runtime "^6.22.0"
|
||||||
|
|
||||||
babel-runtime@^6.22.0:
|
babel-runtime@^6.22.0:
|
||||||
version "6.23.0"
|
version "6.25.0"
|
||||||
resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.23.0.tgz#0a9489f144de70efb3ce4300accdb329e2fc543b"
|
resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.25.0.tgz#33b98eaa5d482bb01a8d1aa6b437ad2b01aec41c"
|
||||||
dependencies:
|
dependencies:
|
||||||
core-js "^2.4.0"
|
core-js "^2.4.0"
|
||||||
regenerator-runtime "^0.10.0"
|
regenerator-runtime "^0.10.0"
|
||||||
@ -1933,15 +1929,15 @@ micromatch@^2.1.5, micromatch@^2.3.7:
|
|||||||
parse-glob "^3.0.4"
|
parse-glob "^3.0.4"
|
||||||
regex-cache "^0.4.2"
|
regex-cache "^0.4.2"
|
||||||
|
|
||||||
mime-db@~1.27.0:
|
mime-db@~1.29.0:
|
||||||
version "1.27.0"
|
version "1.29.0"
|
||||||
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.27.0.tgz#820f572296bbd20ec25ed55e5b5de869e5436eb1"
|
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.29.0.tgz#48d26d235589651704ac5916ca06001914266878"
|
||||||
|
|
||||||
mime-types@^2.1.12, mime-types@~2.1.7:
|
mime-types@^2.1.12, mime-types@~2.1.7:
|
||||||
version "2.1.15"
|
version "2.1.16"
|
||||||
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.15.tgz#a4ebf5064094569237b8cf70046776d09fc92aed"
|
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.16.tgz#2b858a52e5ecd516db897ac2be87487830698e23"
|
||||||
dependencies:
|
dependencies:
|
||||||
mime-db "~1.27.0"
|
mime-db "~1.29.0"
|
||||||
|
|
||||||
mimic-fn@^1.0.0:
|
mimic-fn@^1.0.0:
|
||||||
version "1.1.0"
|
version "1.1.0"
|
||||||
@ -2043,7 +2039,7 @@ normalize-package-data@^2.3.2, normalize-package-data@^2.3.4:
|
|||||||
semver "2 || 3 || 4 || 5"
|
semver "2 || 3 || 4 || 5"
|
||||||
validate-npm-package-license "^3.0.1"
|
validate-npm-package-license "^3.0.1"
|
||||||
|
|
||||||
normalize-path@^2.0.1, normalize-path@^2.1.1:
|
normalize-path@^2.0.0, normalize-path@^2.0.1, normalize-path@^2.1.1:
|
||||||
version "2.1.1"
|
version "2.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"
|
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -2543,8 +2539,8 @@ resolve@1.1.x:
|
|||||||
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
|
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
|
||||||
|
|
||||||
resolve@^1.1.6:
|
resolve@^1.1.6:
|
||||||
version "1.3.3"
|
version "1.4.0"
|
||||||
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.3.3.tgz#655907c3469a8680dc2de3a275a8fdd69691f0e5"
|
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.4.0.tgz#a75be01c53da25d934a98ebd0e4c4a7312f92a86"
|
||||||
dependencies:
|
dependencies:
|
||||||
path-parse "^1.0.5"
|
path-parse "^1.0.5"
|
||||||
|
|
||||||
@ -2589,8 +2585,8 @@ seed-random@2.2.0:
|
|||||||
resolved "https://registry.yarnpkg.com/seed-random/-/seed-random-2.2.0.tgz#2a9b19e250a817099231a5b99a4daf80b7fbed54"
|
resolved "https://registry.yarnpkg.com/seed-random/-/seed-random-2.2.0.tgz#2a9b19e250a817099231a5b99a4daf80b7fbed54"
|
||||||
|
|
||||||
"semver@2 || 3 || 4 || 5", semver@^5.3.0:
|
"semver@2 || 3 || 4 || 5", semver@^5.3.0:
|
||||||
version "5.3.0"
|
version "5.4.1"
|
||||||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f"
|
resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e"
|
||||||
|
|
||||||
set-blocking@^2.0.0, set-blocking@~2.0.0:
|
set-blocking@^2.0.0, set-blocking@~2.0.0:
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
@ -3063,8 +3059,8 @@ symbol-observable@^1.0.1:
|
|||||||
resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.0.4.tgz#29bf615d4aa7121bdd898b22d4b3f9bc4e2aa03d"
|
resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.0.4.tgz#29bf615d4aa7121bdd898b22d4b3f9bc4e2aa03d"
|
||||||
|
|
||||||
systemjs@^0.20.12:
|
systemjs@^0.20.12:
|
||||||
version "0.20.16"
|
version "0.20.17"
|
||||||
resolved "https://registry.yarnpkg.com/systemjs/-/systemjs-0.20.16.tgz#cf300160323349079f30faaddd9ec12807d3d09b"
|
resolved "https://registry.yarnpkg.com/systemjs/-/systemjs-0.20.17.tgz#b3143bb7e02d2f41b9a640351a06024b7b63ae59"
|
||||||
|
|
||||||
tap-mocha-reporter@^3.0.6:
|
tap-mocha-reporter@^3.0.6:
|
||||||
version "3.0.6"
|
version "3.0.6"
|
||||||
@ -3090,9 +3086,9 @@ tap-parser@^5.1.0:
|
|||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
readable-stream "^2"
|
readable-stream "^2"
|
||||||
|
|
||||||
tapbuffer@^1.0.21:
|
tapbuffer@^1.0.24:
|
||||||
version "1.0.21"
|
version "1.0.24"
|
||||||
resolved "https://registry.yarnpkg.com/tapbuffer/-/tapbuffer-1.0.21.tgz#8a1c5592ea62f876fad513e304a5741cd5fe5df8"
|
resolved "https://registry.yarnpkg.com/tapbuffer/-/tapbuffer-1.0.24.tgz#5f6779061f3d45261cda78edcde69736c91090a3"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/istanbul" "^0.4.29"
|
"@types/istanbul" "^0.4.29"
|
||||||
beautylog "^6.1.10"
|
beautylog "^6.1.10"
|
||||||
|
Loading…
Reference in New Issue
Block a user