karma-jasmine
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -36,2 +36,9 @@ (function(window) { | ||
// TODO(vojta): Karma might provide this | ||
var getCurrentTransport = function() { | ||
var location = window.parent.location; | ||
return window.parent.io.sockets[location.protocol + '//' + location.host].transport.name; | ||
}; | ||
/** | ||
@@ -42,4 +49,3 @@ * Very simple reporter for jasmine | ||
this.reportRunnerStarting = function(runner) { | ||
var topLevelSuites = runner.topLevelSuites(); | ||
var getAllSpecNames = function(topLevelSuites) { | ||
var specNames = {}; | ||
@@ -71,2 +77,15 @@ | ||
return specNames; | ||
}; | ||
this.reportRunnerStarting = function(runner) { | ||
var transport = getCurrentTransport(); | ||
var specNames = null; | ||
// This structure can be pretty huge and it blows up socke.io connection, when polling. | ||
// https://github.com/LearnBoost/socket.io-client/issues/569 | ||
if (transport === 'websocket' || transport === 'flashsocket') { | ||
specNames = getAllSpecNames(runner.topLevelSuites()); | ||
} | ||
tc.info({total: runner.specs().length, specs: specNames}); | ||
@@ -73,0 +92,0 @@ }; |
{ | ||
"name": "karma-jasmine", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A Karma plugin - adapter for Jasmine testing framework.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80516
2460