move --single-run option in the karma.conf.js

This commit is contained in:
KtorZ 2017-07-06 15:17:49 +02:00
parent cd93ad676e
commit 9ab34a7d7b
No known key found for this signature in database
GPG Key ID: 3F72E8BC2894C015
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,7 @@
module.exports = config => {
config.set({
autoWatch: true,
singleRun: true,
browsers: ["Chrome"],
files: [
"dist/karma/index.js",
@ -15,7 +16,6 @@ module.exports = config => {
"karma-mocha",
],
reporters: ["spec"],
singleRun: false,
client: {
mocha: {
timeout: 10000

View File

@ -5,7 +5,7 @@
"scripts": {
"prepare:release": "mkdir -p releases/github && cp -r README.md LICENSE src bower.json releases/github",
"test:build": "mkdir -p dist/karma && pulp browserify -j 4 --main \"Test.Main\" -I test --to dist/karma/index.js",
"test:run": "karma start --single-run karma.conf.js",
"test:run": "karma start karma.conf.js",
"test:run:browserstack": "karma start karma.browserstack.conf.js",
"test:browserstack": "npm run test:build && npm run test:run:browserstack",
"test": "npm run test:build && npm run test:run",