diff --git a/package.json b/package.json index e5ab0f9e..eb3a461d 100644 --- a/package.json +++ b/package.json @@ -19,14 +19,12 @@ "apache" ], "scripts": { - "test": "run-s eslint unit-tests java-unit-tests e2e-tests", + "test": "npm run eslint && npm run cover && npm run java-unit-tests", "unit-tests": "jasmine --config=spec/unit/jasmine.json", - "cover": "nyc jasmine --config=spec/unit/jasmine.json", + "cover": "nyc jasmine --config=spec/coverage.json", "e2e-tests": "jasmine --config=spec/e2e/jasmine.json", "java-unit-tests": "node test/run_java_unit_tests.js", - "eslint": "run-s -c eslint:*", - "eslint:scripts": "eslint bin spec test", - "eslint:bins": "eslint 'bin/**/*' --ignore-pattern '**/*.*' --ignore-pattern '**/gitignore' --ignore-pattern 'bin/templates/cordova/version'" + "eslint": "eslint bin spec test" }, "author": "Apache Software Foundation", "license": "Apache-2.0", @@ -48,7 +46,6 @@ "eslint-plugin-promise": "^4.0.1", "eslint-plugin-standard": "^4.0.0", "jasmine": "^3.3.1", - "npm-run-all": "^4.1.5", "nyc": "^13.1.0", "promise-matchers": "~0", "rewire": "^4.0.1" diff --git a/spec/coverage.json b/spec/coverage.json new file mode 100644 index 00000000..a9476c9b --- /dev/null +++ b/spec/coverage.json @@ -0,0 +1,9 @@ +{ + "spec_dir": "spec", + "spec_files": [ + "unit/**/*[sS]pec.js", + "e2e/**/*[sS]pec.js" + ], + "stopSpecOnExpectationFailure": false, + "random": false +}