From 8baf6c1b2b142231d9741449894557c59079b57a Mon Sep 17 00:00:00 2001 From: pangxie1991 Date: Thu, 20 Apr 2017 19:47:59 +0800 Subject: [PATCH] change test script --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b19418d41..706ae9e67 100644 --- a/package.json +++ b/package.json @@ -23,9 +23,9 @@ "dist": "npm run clean && npm run build:file && npm run lint && npm run build:vant && npm run build:components && npm run build:utils && npm run build:vant-css", "clean": "rimraf lib && rimraf packages/*/lib", "lint": "felint lint src/**/*.js packages/**/*.{js,vue} build/**/*.js", - "test": "karma start test/unit/karma.conf.js --single-run; npm run coverage", + "test": "karma start test/unit/karma.conf.js --single-run", + "test:coverage": "find test/unit/coverage/lcov-report -name 'index.html' | sed -n 1,1p | xargs -I {} open {} ", "test:watch": "karma start test/unit/karma.conf.js", - "coverage": "find test/unit/coverage/lcov-report -name 'index.html' | sed -n 1,1p | xargs -I {} open {} ", "release": "npm run bootstrap && sh build/release.sh" }, "repository": {