From 138fb96aed687b84ced49db82c1628eabe1502cb Mon Sep 17 00:00:00 2001 From: Futago-za Ryuu Date: Wed, 27 Mar 2019 06:49:04 +0000 Subject: [PATCH] Use progress reporter for faster local testing --- package.json | 4 ++-- test/mocha.opts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 26f3ff8..0a5c772 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ ], "scripts": { "lint": "eslint --ext .js,.vue . docs/.vuepress", - "test": "nyc mocha --recursive", + "spec": "mocha --reporter progress", "benchmark": "node tools/benchmark", "build-docs": "vuepress build docs", "watch-docs": "vuepress dev docs", @@ -18,7 +18,7 @@ "clean": "rimraf packages/pegjs/dist examples/*.js", "impact": "node tools/impact master", "now-build": "npm run build-docs", - "ci": "npm run lint && npm run test", + "test": "nyc mocha", "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov" }, "dependencies": { diff --git a/test/mocha.opts b/test/mocha.opts index 1d62112..72a86bd 100644 --- a/test/mocha.opts +++ b/test/mocha.opts @@ -1,3 +1,4 @@ +--recursive --reporter mocha-multi-reporters --reporter-options configFile=test/config.json {packages,test}/**/*.{spec,test}.js