test-agent
Advanced tools
Comparing version 0.22.2 to 0.22.3
@@ -90,3 +90,3 @@ var server = new (require('../websocket-server')), | ||
use(Enhancements.MochaTestEvents). | ||
use(Enhancements.BlanketCoverEvents). | ||
use(Enhancements.BlanketConsoleReporter). | ||
use(Enhancements.QueueTests). | ||
@@ -93,0 +93,0 @@ use(Enhancements.StartCoverages). |
@@ -90,3 +90,4 @@ var Client = require('../../node/client'), | ||
var files = argv._.slice(1), | ||
fsPath = require('path'); | ||
fsPath = require('path'), | ||
launchEvent = enableCoverage ? 'start coverages' : 'queue tests'; | ||
@@ -101,8 +102,10 @@ files = files.map(function(file) { | ||
client.mirrorServerEvents(['set test envs', 'error', 'test data', 'coverage data'], true); | ||
if (enableCoverage) { | ||
client.send('start coverages', {files: files}); | ||
} else { | ||
client.send('queue tests', {files: files}); | ||
} | ||
client.mirrorServerEvents([ | ||
'set test envs', | ||
'error', | ||
'test data', | ||
'coverage report' | ||
], true); | ||
client.send(launchEvent, {files: files}); | ||
}); | ||
@@ -116,3 +119,3 @@ | ||
if (enableCoverage) { | ||
client.use(Apps.BlanketCoverEvents); | ||
client.use(Apps.BlanketConsoleReporter); | ||
} | ||
@@ -119,0 +122,0 @@ |
module.exports = exports = { | ||
Broadcast: require('./broadcast'), | ||
MochaTestEvents: require('../../test-agent/common/mocha-test-events'), | ||
BlanketCoverEvents: require('../../test-agent/common/blanket-cover-events'), | ||
BlanketConsoleReporter: require('../../test-agent/blanket/blanket-console-reporter'), | ||
Responder: require('./responder'), | ||
@@ -6,0 +6,0 @@ Watcher: require('./watcher'), |
@@ -33,5 +33,3 @@ (function(window) { | ||
_defaultConfig: { | ||
'data-cover-only': 'js/', | ||
'data-cover-never': 'test/unit/', | ||
'data-cover-flags': 'lazyload' | ||
'data-cover-only': 'js/' | ||
}, | ||
@@ -38,0 +36,0 @@ |
{ | ||
"name": "test-agent", | ||
"version": "0.22.2", | ||
"version": "0.22.3", | ||
"author": "James Lal", | ||
@@ -5,0 +5,0 @@ "description": "execute client side tests from browser report back to cli", |
Sorry, the diff of this file is too big to display
250787
7827