Testem / qunit and js coverage (istanbul) integration

126 views
Skip to first unread message

Scott

unread,
Sep 25, 2014, 10:22:38 PM9/25/14
to testem...@googlegroups.com

I'm fairly certain I have something configured just slightly incorrectly, but am having tunnel vision.

My tests "pass", but I'm getting an error when the testem.js file is included. If I create a html file, then the tests pass, but the browser never closes -- if I add in the /testem.js script, I receive the same error as below.

Here is my test output: 

global failure (1, 0, 1)Rerun2 ms

    SyntaxError: missing } after function body
    Source:


If I view source, then look at testem this is the output I receive:

;(function(){// Error reading /home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/socket.io.js: Error: ENOENT, open '/home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/socket.io.js'// Error reading /home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/json2.js: Error: ENOENT, open '/home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/json2.js'// Error reading /home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/jasmine_adapter.js: Error: ENOENT, open '/home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/jasmine_adapter.js'// Error reading /home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/jasmine2_adapter.js: Error: ENOENT, open '/home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/jasmine2_adapter.js'// Error reading /home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/qunit_adapter.js: Error: ENOENT, open '/home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/qunit_adapter.js'// Error reading /home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/mocha_adapter.js: Error: ENOENT, open '/home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/mocha_adapter.js'// Error reading /home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/buster_adapter.js: Error: ENOENT, open '/home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/buster_adapter.js'// Error reading /home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/testem_client.js: Error: ENOENT, open '/home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/testem_client.js'// Error reading /home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/../../../../public/testem/istanbul_coverage.js: Error: ENOENT, open '/home/scott/testem-sample/node_modules/grunt-testem/node_modules/testem-multi/lib/../node_modules/testem/public/testem/../../../../public/testem/istanbul_coverage.js'}());

I've boiled this down to as simple of an example as I can, which makes use of the other plugins I rely on.

https://github.com/selenium34/testem-sample

Note: this fails even if I take out the usage of istanbul and simply use standard js file. 
testemjs-error.txt
Reply all
Reply to author
Forward
0 new messages