Workiva / wGulp

Opinionated Suite of Gulp Tasks for JavaScript and TypeScript projects.
Apache License 2.0
12 stars 9 forks source link

Saving while watch:test is being run crashes chrome/phantom #86

Open patkujawa-wf opened 10 years ago

patkujawa-wf commented 10 years ago

Version: 0.7.1 Repro:

  1. gulp watch:test or gulp watch:test -c
  2. Save a test file to kick off the re-building process
  3. Before rebuild finishes, save again (might need to modify for watch to reload the file - in sublime text you can just save without modifying)
  4. See the following error in the console (and chrome/phantom crashes, rendering the watch:test tasks useless):
ERROR [karma]: [TypeError: Cannot call method 'ele' of null]
TypeError: Cannot call method 'ele' of null
    at initliazeXmlForBrowser (/Volumes/workspace/wAnalytics/node_modules/wGulp/node_modules/karma-junit-reporter/index.js:28:42)
    at onBrowserStart (/Volumes/workspace/wAnalytics/node_modules/wGulp/node_modules/karma-junit-reporter/index.js:43:5)
    at null.<anonymous> (/Volumes/workspace/wAnalytics/node_modules/wGulp/node_modules/karma/lib/events.js:15:22)
    at emit (events.js:117:20)
    at onStart (/Volumes/workspace/wAnalytics/node_modules/wGulp/node_modules/karma/lib/browser.js:128:13)
    at Socket.<anonymous> (/Volumes/workspace/wAnalytics/node_modules/wGulp/node_modules/karma/lib/events.js:15:22)
    at Socket.emit [as $emit] (events.js:117:20)
    at SocketNamespace.handlePacket (/Volumes/workspace/wAnalytics/node_modules/wGulp/node_modules/karma/node_modules/socket.io/lib/namespace.js:335:22)
    at Manager.onClientMessage (/Volumes/workspace/wAnalytics/node_modules/wGulp/node_modules/karma/node_modules/socket.io/lib/manager.js:518:38)
    at WebSocket.Transport.onMessage (/Volumes/workspace/wAnalytics/node_modules/wGulp/node_modules/karma/node_modules/socket.io/lib/transport.js:369:20)
[11:33:00] 'watch:test' errored after 1.3 h
[11:33:00] Error in plugin 'gulp-karma'
karma exited with code 1

Probably a karma bug, but I don't know.