> karma-browserify@5.3.0 test /home/etienne/Documents/repos/karma-browserify > mocha --exit -r test/expect test/spec/*.js browserify ✓ should expose external require ✓ should remove already added files on reset (2002ms) ✓ should run transforms on required files ✓ should reuse callback (2002ms) karma-browserify ✓ should perform a simple run (1040ms) 30 11 2018 15:40:37.384:DEBUG [config]: Loading config /home/etienne/Documents/repos/karma-browserify/test/integration/no-auto-watch.conf.js 30 11 2018 15:40:37.386:DEBUG [karma-server]: Final config { "LOG_DISABLE": "OFF", "LOG_ERROR": "ERROR", "LOG_WARN": "WARN", "LOG_INFO": "INFO", "LOG_DEBUG": "DEBUG", "frameworks": [ "jasmine", "browserify", "runner" ], "protocol": "http:", "port": 9876, "listenAddress": "0.0.0.0", "hostname": "localhost", "httpsServerConfig": {}, "basePath": "/home/etienne/Documents/repos/karma-browserify/test/integration", "files": [ { "pattern": "/home/etienne/Documents/repos/karma-browserify/test/integration/vendor/external.js", "served": true, "included": true, "watched": true, "nocache": false, "weight": [ 1, 0, 0, 0, 0, 0 ] }, { "pattern": "/home/etienne/Documents/repos/karma-browserify/test/integration/test/aSpec.js", "served": true, "included": true, "watched": true, "nocache": false, "weight": [ 1, 0, 0, 0, 0, 0 ] }, { "pattern": "/home/etienne/Documents/repos/karma-browserify/test/integration/test/externalSpec.js", "served": true, "included": true, "watched": true, "nocache": false, "weight": [ 1, 0, 0, 0, 0, 0 ] } ], "browserConsoleLogOptions": { "level": "debug", "format": "%b %T: %m", "terminal": true }, "customContextFile": null, "customDebugFile": null, "customClientContextFile": null, "exclude": [ "/home/etienne/Documents/repos/karma-browserify/test/integration/no-auto-watch.conf.js" ], "logLevel": "DEBUG", "colors": true, "autoWatch": false, "autoWatchBatchDelay": 250, "restartOnFileChange": false, "usePolling": true, "reporters": [ "dots" ], "singleRun": false, "browsers": [ "PhantomJS" ], "captureTimeout": 60000, "proxies": {}, "proxyValidateSSL": true, "preprocessors": { "/home/etienne/Documents/repos/karma-browserify/test/integration/test/*.js": [ "browserify" ] }, "urlRoot": "/", "reportSlowerThan": 0, "loggers": [ { "type": "console", "layout": { "type": "pattern", "pattern": "%[%d{DATE}:%p [%c]: %]%m" } } ], "transports": [ "polling", "websocket" ], "forceJSONP": false, "plugins": [ "karma-*", { "bro": [ "type", null ], "framework:browserify": [ "factory", null ], "preprocessor:browserify": [ "factory", null ], "preprocessor:browserify-bundle": [ "factory", null ], "preprocess": [ "factory", null ] }, { "framework:runner": [ "factory", null ] } ], "client": { "args": [], "useIframe": true, "runInParent": false, "captureConsole": true, "clearContext": true }, "defaultClient": { "args": [], "useIframe": true, "runInParent": false, "captureConsole": true, "clearContext": true }, "browserDisconnectTimeout": 2000, "browserDisconnectTolerance": 0, "browserNoActivityTimeout": 30000, "processKillTimeout": 2000, "concurrency": null, "failOnEmptyTestSuite": true, "retryLimit": 2, "detached": false, "crossOriginAttribute": true, "browserSocketTimeout": 20000, "configFile": "/home/etienne/Documents/repos/karma-browserify/test/integration/no-auto-watch.conf.js", "browserify": { "debug": true } } 30 11 2018 15:40:37.386:DEBUG [plugin]: Loading karma-* from /home/etienne/Documents/repos/karma-browserify/node_modules 30 11 2018 15:40:37.387:DEBUG [plugin]: Loading plugin /home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine. 30 11 2018 15:40:37.387:DEBUG [plugin]: Loading plugin /home/etienne/Documents/repos/karma-browserify/node_modules/karma-phantomjs-launcher. 30 11 2018 15:40:37.387:DEBUG [plugin]: Loading inlined plugin (defining bro, framework:browserify, preprocessor:browserify, preprocessor:browserify-bundle, preprocess). 30 11 2018 15:40:37.388:DEBUG [plugin]: Loading inlined plugin (defining framework:runner). 30 11 2018 15:40:37.389:DEBUG [framework.browserify]: created browserify bundle: /tmp/2392adcc00abc40efca5c1ef7412eb88.browserify.js 30 11 2018 15:40:37.392:DEBUG [framework.browserify]: add bundle to config.files at position 4 30 11 2018 15:40:37.392:DEBUG [web-server]: Instantiating middleware 30 11 2018 15:40:37.404:DEBUG [framework.browserify]: updating test/aSpec.js in bundle 30 11 2018 15:40:37.404:DEBUG [framework.browserify]: building bundle 30 11 2018 15:40:37.404:DEBUG [framework.browserify]: updating test/externalSpec.js in bundle 30 11 2018 15:40:38.106:DEBUG [framework.browserify]: bundling 30 11 2018 15:40:38.131:INFO [framework.browserify]: bundle built 30 11 2018 15:40:38.132:INFO [karma-server]: Karma v3.1.1 server started at http://0.0.0.0:9876/ 30 11 2018 15:40:38.132:INFO [launcher]: Launching browsers PhantomJS with concurrency unlimited 30 11 2018 15:40:38.134:INFO [launcher]: Starting browser PhantomJS 30 11 2018 15:40:38.134:DEBUG [temp-dir]: Creating temp dir at /tmp/karma-59171126 30 11 2018 15:40:38.135:DEBUG [launcher]: /home/etienne/Documents/repos/karma-browserify/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /tmp/karma-59171126/capture.js 30 11 2018 15:40:38.197:DEBUG [web-server]: serving: /home/etienne/Documents/repos/karma-browserify/node_modules/karma/static/client.html 30 11 2018 15:40:38.202:DEBUG [web-server]: serving: /home/etienne/Documents/repos/karma-browserify/node_modules/karma/static/karma.js 30 11 2018 15:40:38.221:DEBUG [karma-server]: A browser has connected on socket Re3vrZZdZ1tFyiUpAAAB 30 11 2018 15:40:38.242:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=Re3vrZZdZ1tFyiUpAAAB 30 11 2018 15:40:38.285:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket Re3vrZZdZ1tFyiUpAAAB with id 59171126 30 11 2018 15:40:38.286:DEBUG [launcher]: PhantomJS (id 59171126) captured in 0.154 secs 30 11 2018 15:40:38.288:DEBUG [config]: Loading config /home/etienne/Documents/repos/karma-browserify/test/spec/../integration/no-auto-watch.conf.js 30 11 2018 15:40:38.295:DEBUG [karma]: Execution (fired by runner) 30 11 2018 15:40:38.304:DEBUG [karma]: Ignoring empty client.args from run command 30 11 2018 15:40:38.304:DEBUG [karma]: Refreshing all the files / patterns 30 11 2018 15:40:38.307:DEBUG [framework.browserify]: building bundle 30 11 2018 15:40:38.308:DEBUG [framework.browserify]: updating test/aSpec.js in bundle 30 11 2018 15:40:38.308:DEBUG [framework.browserify]: updating test/externalSpec.js in bundle 30 11 2018 15:40:39.009:DEBUG [framework.browserify]: resetting bundle 30 11 2018 15:40:39.014:DEBUG [framework.browserify]: bundling 30 11 2018 15:40:39.033:INFO [framework.browserify]: bundle built 30 11 2018 15:40:39.034:DEBUG [karma]: All browsers are ready, executing 30 11 2018 15:40:39.034:DEBUG [karma]: Captured 1 browsers 30 11 2018 15:40:39.035:DEBUG [phantomjs.launcher]:  30 11 2018 15:40:39.036:DEBUG [middleware:karma]: custom files null null null 30 11 2018 15:40:39.036:DEBUG [middleware:karma]: Serving static request /context.html 30 11 2018 15:40:39.036:DEBUG [web-server]: serving: /home/etienne/Documents/repos/karma-browserify/node_modules/karma/static/context.html 30 11 2018 15:40:39.038:DEBUG [middleware:source-files]: Requesting /absolute/home/etienne/Documents/repos/karma-browserify/node_modules/jasmine-core/lib/jasmine-core/jasmine.js?0b1eaf7a13cae32191eadea482cfc96ae41fc22b 30 11 2018 15:40:39.039:DEBUG [middleware:source-files]: Fetching /home/etienne/Documents/repos/karma-browserify/node_modules/jasmine-core/lib/jasmine-core/jasmine.js 30 11 2018 15:40:39.039:DEBUG [web-server]: serving (cached): /home/etienne/Documents/repos/karma-browserify/node_modules/jasmine-core/lib/jasmine-core/jasmine.js 30 11 2018 15:40:39.040:DEBUG [middleware:source-files]: Requesting /base/test/aSpec.js?d5bcb2ace67d1208f46f500a43e1414888b8932c 30 11 2018 15:40:39.040:DEBUG [middleware:source-files]: Fetching /home/etienne/Documents/repos/karma-browserify/test/integration/test/aSpec.js 30 11 2018 15:40:39.040:DEBUG [middleware:source-files]: Requesting /absolute/home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/boot.js?945a38bf4e45ad2770eb94868231905a04a0bd3e 30 11 2018 15:40:39.040:DEBUG [middleware:source-files]: Fetching /home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/boot.js 30 11 2018 15:40:39.041:DEBUG [middleware:source-files]: Requesting /absolute/home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/adapter.js?6cf71867f538f40db053c1775b2c56a83696375c 30 11 2018 15:40:39.041:DEBUG [middleware:source-files]: Fetching /home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/adapter.js 30 11 2018 15:40:39.041:DEBUG [middleware:source-files]: Requesting /base/vendor/external.js?83e144a2d568e656bdeaf2db1bca6c8d092b3958 30 11 2018 15:40:39.041:DEBUG [middleware:source-files]: Fetching /home/etienne/Documents/repos/karma-browserify/test/integration/vendor/external.js 30 11 2018 15:40:39.041:DEBUG [middleware:source-files]: Requesting /absolute/tmp/2392adcc00abc40efca5c1ef7412eb88.browserify.js?b4bf20a8f76753f782b7bcc2e2de7d82f71311c4 30 11 2018 15:40:39.041:DEBUG [middleware:source-files]: Fetching /tmp/2392adcc00abc40efca5c1ef7412eb88.browserify.js 30 11 2018 15:40:39.041:DEBUG [web-server]: serving (cached): /home/etienne/Documents/repos/karma-browserify/test/integration/test/aSpec.js 30 11 2018 15:40:39.041:DEBUG [web-server]: serving (cached): /home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/boot.js 30 11 2018 15:40:39.042:DEBUG [web-server]: serving (cached): /home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/adapter.js 30 11 2018 15:40:39.042:DEBUG [web-server]: serving (cached): /home/etienne/Documents/repos/karma-browserify/test/integration/vendor/external.js 30 11 2018 15:40:39.042:DEBUG [web-server]: serving (cached): /tmp/2392adcc00abc40efca5c1ef7412eb88.browserify.js 30 11 2018 15:40:39.043:DEBUG [middleware:source-files]: Requesting /base/test/externalSpec.js?66ccb2542205ee930d55fb80f8e2db690e6224c7 30 11 2018 15:40:39.044:DEBUG [middleware:source-files]: Fetching /home/etienne/Documents/repos/karma-browserify/test/integration/test/externalSpec.js 30 11 2018 15:40:39.044:DEBUG [web-server]: serving (cached): /home/etienne/Documents/repos/karma-browserify/test/integration/test/externalSpec.js 30 11 2018 15:40:39.045:DEBUG [web-server]: serving: /home/etienne/Documents/repos/karma-browserify/node_modules/karma/static/context.js .. PhantomJS 2.1.1 (Linux 0.0.0): Executed 2 of 2 SUCCESS (0.003 secs / 0.001 secs) .. PhantomJS 2.1.1 (Linux 0.0.0): Executed 2 of 2 SUCCESS (0.003 secs / 0.001 secs) 30 11 2018 15:40:39.565:DEBUG [launcher]: Disconnecting all browsers 30 11 2018 15:40:39.565:DEBUG [framework.browserify]: cleaning up 30 11 2018 15:40:39.570:DEBUG [launcher]: Process PhantomJS exited with code null 30 11 2018 15:40:39.570:DEBUG [temp-dir]: Cleaning temp dir /tmp/karma-59171126 30 11 2018 15:40:39.572:DEBUG [launcher]: Finished all browsers ✓ should manually trigger no-auto-watch run (2191ms) ✓ should not double bundle on test file change (4972ms) ✓ should not rebundle if file change is outside bundle (4975ms) ✓ should detect file rename (7974ms) error handling 30 11 2018 15:40:57.498:DEBUG [config]: Loading config /home/etienne/Documents/repos/karma-browserify/test/integration/test-error.conf.js 30 11 2018 15:40:57.498:DEBUG [karma-server]: Final config { "LOG_DISABLE": "OFF", "LOG_ERROR": "ERROR", "LOG_WARN": "WARN", "LOG_INFO": "INFO", "LOG_DEBUG": "DEBUG", "frameworks": [ "jasmine", "browserify", "runner" ], "protocol": "http:", "port": 9876, "listenAddress": "0.0.0.0", "hostname": "localhost", "httpsServerConfig": {}, "basePath": "/home/etienne/Documents/repos/karma-browserify/test/integration", "files": [ { "pattern": "/home/etienne/Documents/repos/karma-browserify/test/integration/test/error/testErrorSpec.js", "served": true, "included": true, "watched": true, "nocache": false, "weight": [ 1, 0, 0, 0, 0, 0 ] } ], "browserConsoleLogOptions": { "level": "debug", "format": "%b %T: %m", "terminal": true }, "customContextFile": null, "customDebugFile": null, "customClientContextFile": null, "exclude": [ "/home/etienne/Documents/repos/karma-browserify/test/integration/test-error.conf.js" ], "logLevel": "DEBUG", "colors": true, "autoWatch": false, "autoWatchBatchDelay": 250, "restartOnFileChange": false, "usePolling": true, "reporters": [ "dots" ], "singleRun": true, "browsers": [ "PhantomJS" ], "captureTimeout": 60000, "proxies": {}, "proxyValidateSSL": true, "preprocessors": { "/home/etienne/Documents/repos/karma-browserify/test/integration/test/**/*.js": [ "browserify" ] }, "urlRoot": "/", "reportSlowerThan": 0, "loggers": [ { "type": "console", "layout": { "type": "pattern", "pattern": "%[%d{DATE}:%p [%c]: %]%m" } } ], "transports": [ "polling", "websocket" ], "forceJSONP": false, "plugins": [ "karma-*", { "bro": [ "type", null ], "framework:browserify": [ "factory", null ], "preprocessor:browserify": [ "factory", null ], "preprocessor:browserify-bundle": [ "factory", null ], "preprocess": [ "factory", null ] }, { "framework:runner": [ "factory", null ] } ], "client": { "args": [], "useIframe": true, "runInParent": false, "captureConsole": true, "clearContext": true }, "defaultClient": { "args": [], "useIframe": true, "runInParent": false, "captureConsole": true, "clearContext": true }, "browserDisconnectTimeout": 2000, "browserDisconnectTolerance": 0, "browserNoActivityTimeout": 30000, "processKillTimeout": 2000, "concurrency": null, "failOnEmptyTestSuite": true, "retryLimit": 2, "detached": false, "crossOriginAttribute": true, "browserSocketTimeout": 20000, "configFile": "/home/etienne/Documents/repos/karma-browserify/test/integration/test-error.conf.js", "browserify": { "debug": true } } 30 11 2018 15:40:57.498:DEBUG [plugin]: Loading karma-* from /home/etienne/Documents/repos/karma-browserify/node_modules 30 11 2018 15:40:57.499:DEBUG [plugin]: Loading plugin /home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine. 30 11 2018 15:40:57.499:DEBUG [plugin]: Loading plugin /home/etienne/Documents/repos/karma-browserify/node_modules/karma-phantomjs-launcher. 30 11 2018 15:40:57.499:DEBUG [plugin]: Loading inlined plugin (defining bro, framework:browserify, preprocessor:browserify, preprocessor:browserify-bundle, preprocess). 30 11 2018 15:40:57.499:DEBUG [plugin]: Loading inlined plugin (defining framework:runner). 30 11 2018 15:40:57.501:DEBUG [framework.browserify]: created browserify bundle: /tmp/e3a0af916dc3cecd4b085b911f86b3a4.browserify.js 30 11 2018 15:40:57.502:DEBUG [framework.browserify]: add bundle to config.files at position 3 30 11 2018 15:40:57.502:DEBUG [web-server]: Instantiating middleware 30 11 2018 15:40:57.506:DEBUG [framework.browserify]: building bundle 30 11 2018 15:40:57.506:DEBUG [framework.browserify]: updating test/error/testErrorSpec.js in bundle 30 11 2018 15:40:58.207:DEBUG [framework.browserify]: bundling 30 11 2018 15:40:58.216:ERROR [framework.browserify]: bundle error 30 11 2018 15:40:58.216:ERROR [framework.browserify]:  /home/etienne/Documents/repos/karma-browserify/test/integration/test/error/testErrorSpec.js:2 someFn({a}, b: 'c'); ^ ParseError: Unexpected token 30 11 2018 15:40:58.217:INFO [karma-server]: Karma v3.1.1 server started at http://0.0.0.0:9876/ 30 11 2018 15:40:58.217:INFO [launcher]: Launching browsers PhantomJS with concurrency unlimited 30 11 2018 15:40:58.220:INFO [launcher]: Starting browser PhantomJS 30 11 2018 15:40:58.220:DEBUG [temp-dir]: Creating temp dir at /tmp/karma-24749215 30 11 2018 15:40:58.221:DEBUG [launcher]: /home/etienne/Documents/repos/karma-browserify/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /tmp/karma-24749215/capture.js 30 11 2018 15:40:58.284:DEBUG [web-server]: serving: /home/etienne/Documents/repos/karma-browserify/node_modules/karma/static/client.html 30 11 2018 15:40:58.290:DEBUG [web-server]: serving: /home/etienne/Documents/repos/karma-browserify/node_modules/karma/static/karma.js 30 11 2018 15:40:58.308:DEBUG [karma-server]: A browser has connected on socket M63kCJ83NFuAKsQxAAAF 30 11 2018 15:40:58.329:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=M63kCJ83NFuAKsQxAAAF 30 11 2018 15:40:58.373:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket M63kCJ83NFuAKsQxAAAF with id 24749215 30 11 2018 15:40:58.373:DEBUG [launcher]: PhantomJS (id 24749215) captured in 0.156 secs 30 11 2018 15:40:58.378:DEBUG [phantomjs.launcher]:  30 11 2018 15:40:58.379:DEBUG [middleware:karma]: custom files null null null 30 11 2018 15:40:58.379:DEBUG [middleware:karma]: Serving static request /context.html 30 11 2018 15:40:58.379:DEBUG [web-server]: serving: /home/etienne/Documents/repos/karma-browserify/node_modules/karma/static/context.html 30 11 2018 15:40:58.383:DEBUG [middleware:source-files]: Requesting /absolute/home/etienne/Documents/repos/karma-browserify/node_modules/jasmine-core/lib/jasmine-core/jasmine.js?0b1eaf7a13cae32191eadea482cfc96ae41fc22b 30 11 2018 15:40:58.383:DEBUG [middleware:source-files]: Fetching /home/etienne/Documents/repos/karma-browserify/node_modules/jasmine-core/lib/jasmine-core/jasmine.js 30 11 2018 15:40:58.385:DEBUG [web-server]: serving (cached): /home/etienne/Documents/repos/karma-browserify/node_modules/jasmine-core/lib/jasmine-core/jasmine.js 30 11 2018 15:40:58.387:DEBUG [middleware:source-files]: Requesting /absolute/home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/boot.js?945a38bf4e45ad2770eb94868231905a04a0bd3e 30 11 2018 15:40:58.387:DEBUG [middleware:source-files]: Fetching /home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/boot.js 30 11 2018 15:40:58.387:DEBUG [middleware:source-files]: Requesting /absolute/home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/adapter.js?6cf71867f538f40db053c1775b2c56a83696375c 30 11 2018 15:40:58.388:DEBUG [middleware:source-files]: Fetching /home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/adapter.js 30 11 2018 15:40:58.388:DEBUG [middleware:source-files]: Requesting /absolute/tmp/e3a0af916dc3cecd4b085b911f86b3a4.browserify.js?59c06c9eba4f4adc27dc229cfaebba395247ee16 30 11 2018 15:40:58.388:DEBUG [middleware:source-files]: Fetching /tmp/e3a0af916dc3cecd4b085b911f86b3a4.browserify.js 30 11 2018 15:40:58.388:DEBUG [middleware:source-files]: Requesting /base/test/error/testErrorSpec.js?c688b2296aa0fb9275e9c6f9229429267507cf41 30 11 2018 15:40:58.388:DEBUG [middleware:source-files]: Fetching /home/etienne/Documents/repos/karma-browserify/test/integration/test/error/testErrorSpec.js 30 11 2018 15:40:58.388:DEBUG [web-server]: serving (cached): /home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/boot.js 30 11 2018 15:40:58.389:DEBUG [web-server]: serving (cached): /home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/adapter.js 30 11 2018 15:40:58.389:DEBUG [web-server]: serving (cached): /tmp/e3a0af916dc3cecd4b085b911f86b3a4.browserify.js 30 11 2018 15:40:58.389:DEBUG [web-server]: serving (cached): /home/etienne/Documents/repos/karma-browserify/test/integration/test/error/testErrorSpec.js 30 11 2018 15:40:58.390:DEBUG [web-server]: serving: /home/etienne/Documents/repos/karma-browserify/node_modules/karma/static/context.js 30 11 2018 15:40:58.404:DEBUG [phantomjs.launcher]: Error: bundle error (see logs) 30 11 2018 15:40:58.405:DEBUG [phantomjs.launcher]:  http://localhost:9876/absolute/tmp/e3a0af916dc3cecd4b085b911f86b3a4.browserify.js?59c06c9eba4f4adc27dc229cfaebba395247ee16:1 in global code PhantomJS 2.1.1 (Linux 0.0.0) ERROR { "message": "Error: bundle error (see logs)\nat /tmp/e3a0af916dc3cecd4b085b911f86b3a4.browserify.js:1:43", "str": "Error: bundle error (see logs)\nat /tmp/e3a0af916dc3cecd4b085b911f86b3a4.browserify.js:1:43" } PhantomJS 2.1.1 (Linux 0.0.0): Executed 0 of 0 ERROR (0.075 secs / 0 secs) 30 11 2018 15:40:58.449:DEBUG [karma-server]: Run complete, exiting. 30 11 2018 15:40:58.449:DEBUG [launcher]: Disconnecting all browsers 30 11 2018 15:40:58.449:DEBUG [framework.browserify]: cleaning up 30 11 2018 15:40:58.454:DEBUG [launcher]: Process PhantomJS exited with code null 30 11 2018 15:40:58.455:DEBUG [temp-dir]: Cleaning temp dir /tmp/karma-24749215 30 11 2018 15:40:58.456:DEBUG [launcher]: Finished all browsers ✓ should handle test error (961ms) 30 11 2018 15:40:58.460:DEBUG [config]: Loading config /home/etienne/Documents/repos/karma-browserify/test/integration/dependency-error.conf.js 30 11 2018 15:40:58.461:DEBUG [karma-server]: Final config { "LOG_DISABLE": "OFF", "LOG_ERROR": "ERROR", "LOG_WARN": "WARN", "LOG_INFO": "INFO", "LOG_DEBUG": "DEBUG", "frameworks": [ "jasmine", "browserify", "runner" ], "protocol": "http:", "port": 9876, "listenAddress": "0.0.0.0", "hostname": "localhost", "httpsServerConfig": {}, "basePath": "/home/etienne/Documents/repos/karma-browserify/test/integration", "files": [ { "pattern": "/home/etienne/Documents/repos/karma-browserify/test/integration/test/error/dependencyErrorSpec.js", "served": true, "included": true, "watched": true, "nocache": false, "weight": [ 1, 0, 0, 0, 0, 0 ] } ], "browserConsoleLogOptions": { "level": "debug", "format": "%b %T: %m", "terminal": true }, "customContextFile": null, "customDebugFile": null, "customClientContextFile": null, "exclude": [ "/home/etienne/Documents/repos/karma-browserify/test/integration/dependency-error.conf.js" ], "logLevel": "DEBUG", "colors": true, "autoWatch": false, "autoWatchBatchDelay": 250, "restartOnFileChange": false, "usePolling": true, "reporters": [ "dots" ], "singleRun": true, "browsers": [ "PhantomJS" ], "captureTimeout": 60000, "proxies": {}, "proxyValidateSSL": true, "preprocessors": { "/home/etienne/Documents/repos/karma-browserify/test/integration/test/**/*.js": [ "browserify" ] }, "urlRoot": "/", "reportSlowerThan": 0, "loggers": [ { "type": "console", "layout": { "type": "pattern", "pattern": "%[%d{DATE}:%p [%c]: %]%m" } } ], "transports": [ "polling", "websocket" ], "forceJSONP": false, "plugins": [ "karma-*", { "bro": [ "type", null ], "framework:browserify": [ "factory", null ], "preprocessor:browserify": [ "factory", null ], "preprocessor:browserify-bundle": [ "factory", null ], "preprocess": [ "factory", null ] }, { "framework:runner": [ "factory", null ] } ], "client": { "args": [], "useIframe": true, "runInParent": false, "captureConsole": true, "clearContext": true }, "defaultClient": { "args": [], "useIframe": true, "runInParent": false, "captureConsole": true, "clearContext": true }, "browserDisconnectTimeout": 2000, "browserDisconnectTolerance": 0, "browserNoActivityTimeout": 30000, "processKillTimeout": 2000, "concurrency": null, "failOnEmptyTestSuite": true, "retryLimit": 2, "detached": false, "crossOriginAttribute": true, "browserSocketTimeout": 20000, "configFile": "/home/etienne/Documents/repos/karma-browserify/test/integration/dependency-error.conf.js", "browserify": { "debug": true } } 30 11 2018 15:40:58.461:DEBUG [plugin]: Loading karma-* from /home/etienne/Documents/repos/karma-browserify/node_modules 30 11 2018 15:40:58.463:DEBUG [plugin]: Loading plugin /home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine. 30 11 2018 15:40:58.463:DEBUG [plugin]: Loading plugin /home/etienne/Documents/repos/karma-browserify/node_modules/karma-phantomjs-launcher. 30 11 2018 15:40:58.463:DEBUG [plugin]: Loading inlined plugin (defining bro, framework:browserify, preprocessor:browserify, preprocessor:browserify-bundle, preprocess). 30 11 2018 15:40:58.463:DEBUG [plugin]: Loading inlined plugin (defining framework:runner). 30 11 2018 15:40:58.464:DEBUG [framework.browserify]: created browserify bundle: /tmp/b23940747c10aeb3ee8502193418fe52.browserify.js 30 11 2018 15:40:58.465:DEBUG [framework.browserify]: add bundle to config.files at position 3 30 11 2018 15:40:58.465:DEBUG [web-server]: Instantiating middleware 30 11 2018 15:40:58.467:DEBUG [framework.browserify]: building bundle 30 11 2018 15:40:58.468:DEBUG [framework.browserify]: updating test/error/dependencyErrorSpec.js in bundle 30 11 2018 15:40:59.169:DEBUG [framework.browserify]: bundling 30 11 2018 15:40:59.178:ERROR [framework.browserify]: bundle error 30 11 2018 15:40:59.178:ERROR [framework.browserify]:  /home/etienne/Documents/repos/karma-browserify/test/integration/test/error/foo.js:1 module.exports = ('foo' { }); ^ ParseError: Unexpected token 30 11 2018 15:40:59.179:INFO [karma-server]: Karma v3.1.1 server started at http://0.0.0.0:9876/ 30 11 2018 15:40:59.179:INFO [launcher]: Launching browsers PhantomJS with concurrency unlimited 30 11 2018 15:40:59.181:INFO [launcher]: Starting browser PhantomJS 30 11 2018 15:40:59.181:DEBUG [temp-dir]: Creating temp dir at /tmp/karma-15290661 30 11 2018 15:40:59.182:DEBUG [launcher]: /home/etienne/Documents/repos/karma-browserify/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /tmp/karma-15290661/capture.js 30 11 2018 15:40:59.242:DEBUG [web-server]: serving: /home/etienne/Documents/repos/karma-browserify/node_modules/karma/static/client.html 30 11 2018 15:40:59.248:DEBUG [web-server]: serving: /home/etienne/Documents/repos/karma-browserify/node_modules/karma/static/karma.js 30 11 2018 15:40:59.269:DEBUG [karma-server]: A browser has connected on socket -Bc73RPJvIZfx1s7AAAG 30 11 2018 15:40:59.290:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=-Bc73RPJvIZfx1s7AAAG 30 11 2018 15:40:59.333:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket -Bc73RPJvIZfx1s7AAAG with id 15290661 30 11 2018 15:40:59.334:DEBUG [launcher]: PhantomJS (id 15290661) captured in 0.155 secs 30 11 2018 15:40:59.340:DEBUG [phantomjs.launcher]:  30 11 2018 15:40:59.341:DEBUG [middleware:karma]: custom files null null null 30 11 2018 15:40:59.341:DEBUG [middleware:karma]: Serving static request /context.html 30 11 2018 15:40:59.341:DEBUG [web-server]: serving: /home/etienne/Documents/repos/karma-browserify/node_modules/karma/static/context.html 30 11 2018 15:40:59.343:DEBUG [middleware:source-files]: Requesting /absolute/home/etienne/Documents/repos/karma-browserify/node_modules/jasmine-core/lib/jasmine-core/jasmine.js?0b1eaf7a13cae32191eadea482cfc96ae41fc22b 30 11 2018 15:40:59.343:DEBUG [middleware:source-files]: Fetching /home/etienne/Documents/repos/karma-browserify/node_modules/jasmine-core/lib/jasmine-core/jasmine.js 30 11 2018 15:40:59.344:DEBUG [web-server]: serving (cached): /home/etienne/Documents/repos/karma-browserify/node_modules/jasmine-core/lib/jasmine-core/jasmine.js 30 11 2018 15:40:59.344:DEBUG [middleware:source-files]: Requesting /absolute/home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/boot.js?945a38bf4e45ad2770eb94868231905a04a0bd3e 30 11 2018 15:40:59.344:DEBUG [middleware:source-files]: Fetching /home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/boot.js 30 11 2018 15:40:59.345:DEBUG [middleware:source-files]: Requesting /absolute/home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/adapter.js?6cf71867f538f40db053c1775b2c56a83696375c 30 11 2018 15:40:59.345:DEBUG [middleware:source-files]: Fetching /home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/adapter.js 30 11 2018 15:40:59.345:DEBUG [middleware:source-files]: Requesting /absolute/tmp/b23940747c10aeb3ee8502193418fe52.browserify.js?59c06c9eba4f4adc27dc229cfaebba395247ee16 30 11 2018 15:40:59.345:DEBUG [middleware:source-files]: Fetching /tmp/b23940747c10aeb3ee8502193418fe52.browserify.js 30 11 2018 15:40:59.345:DEBUG [web-server]: serving (cached): /home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/boot.js 30 11 2018 15:40:59.345:DEBUG [web-server]: serving (cached): /home/etienne/Documents/repos/karma-browserify/node_modules/karma-jasmine/lib/adapter.js 30 11 2018 15:40:59.345:DEBUG [web-server]: serving (cached): /tmp/b23940747c10aeb3ee8502193418fe52.browserify.js 30 11 2018 15:40:59.346:DEBUG [middleware:source-files]: Requesting /base/test/error/dependencyErrorSpec.js?850d05555cbf7b23b42b12389f7c6d7f2a394434 30 11 2018 15:40:59.346:DEBUG [middleware:source-files]: Fetching /home/etienne/Documents/repos/karma-browserify/test/integration/test/error/dependencyErrorSpec.js 30 11 2018 15:40:59.346:DEBUG [web-server]: serving (cached): /home/etienne/Documents/repos/karma-browserify/test/integration/test/error/dependencyErrorSpec.js 30 11 2018 15:40:59.346:DEBUG [web-server]: serving: /home/etienne/Documents/repos/karma-browserify/node_modules/karma/static/context.js 30 11 2018 15:40:59.357:DEBUG [phantomjs.launcher]: Error: bundle error (see logs) 30 11 2018 15:40:59.357:DEBUG [phantomjs.launcher]:  http://localhost:9876/absolute/tmp/b23940747c10aeb3ee8502193418fe52.browserify.js?59c06c9eba4f4adc27dc229cfaebba395247ee16:1 in global code PhantomJS 2.1.1 (Linux 0.0.0) ERROR { "message": "Error: bundle error (see logs)\nat /tmp/b23940747c10aeb3ee8502193418fe52.browserify.js:1:43", "str": "Error: bundle error (see logs)\nat /tmp/b23940747c10aeb3ee8502193418fe52.browserify.js:1:43" } PhantomJS 2.1.1 (Linux 0.0.0): Executed 0 of 0 ERROR (0.067 secs / 0 secs) 30 11 2018 15:40:59.401:DEBUG [karma-server]: Run complete, exiting. 30 11 2018 15:40:59.401:DEBUG [launcher]: Disconnecting all browsers 30 11 2018 15:40:59.401:DEBUG [framework.browserify]: cleaning up 30 11 2018 15:40:59.406:DEBUG [launcher]: Process PhantomJS exited with code null 30 11 2018 15:40:59.406:DEBUG [temp-dir]: Cleaning temp dir /tmp/karma-15290661 30 11 2018 15:40:59.407:DEBUG [launcher]: Finished all browsers ✓ should handle dependency error (950ms) 30 11 2018 15:41:01.662:ERROR [framework.browserify]: bundle error 30 11 2018 15:41:01.662:ERROR [framework.browserify]: TypeScript error: test/integration/ts/A.spec.ts(3,1): Error TS2304: Cannot find name 'describe'. 30 11 2018 15:41:01.663:ERROR [framework.browserify]: bundle error 30 11 2018 15:41:01.663:ERROR [framework.browserify]: TypeScript error: test/integration/ts/A.spec.ts(5,3): Error TS2304: Cannot find name 'it'. 30 11 2018 15:41:01.663:ERROR [framework.browserify]: bundle error 30 11 2018 15:41:01.663:ERROR [framework.browserify]: TypeScript error: test/integration/ts/A.spec.ts(7,5): Error TS2304: Cannot find name 'expect'. ✓ should handle typescript compile error (2505ms) karma-browserify framework init [debug] created browserify bundle: /tmp/494a55a1eb4158455911710602b3bcb2.browserify.js [debug] add bundle to config.files at position 0 ✓ should prepend and init bundle file [debug] cleaning up [debug] created browserify bundle: /tmp/8fe4683dafa78464ee6ace562004ceef.browserify.js [debug] add bundle to config.files at position 1 ✓ should insert bundle file right before first preprocessed file [debug] cleaning up [debug] created browserify bundle: /tmp/06c7661dfb76f0c52919e82b65889ca5.browserify.js [debug] add bundle to config.files at position 1 ✓ should insert bundle file before more-specific preprocessed pattern [debug] cleaning up [debug] created browserify bundle: /tmp/6a8617849b5c81bc395a903665dfd59a.browserify.js [debug] no matching preprocessed file was found, defaulting to prepend [debug] add bundle to config.files at position 0 ✓ should not insert bundle file before less-specific preprocessed pattern [debug] cleaning up cleanup [debug] created browserify bundle: /tmp/dde03d92e45e6f9ad2b0ceb577152e2e.browserify.js [debug] add bundle to config.files at position 0 [debug] cleaning up ✓ should remove bundle file on exit [debug] cleaning up preprocessing [debug] created browserify bundle: /tmp/2133d5b337ced93576c4ff2e83c2246d.browserify.js [debug] add bundle to config.files at position 0 [debug] building bundle [debug] updating test/fixtures/c.js in bundle [debug] updating test/fixtures/b.js in bundle [debug] bundling [info] bundle built ✓ should create bundle (730ms) [debug] cleaning up [debug] created browserify bundle: /tmp/e056a48c1e83df7aa9194739564a117e.browserify.js [debug] add bundle to config.files at position 0 [debug] building bundle [debug] updating test/fixtures/b.js in bundle [debug] bundling [info] bundle built [debug] building bundle [debug] updating test/fixtures/b.js in bundle [debug] resetting bundle [debug] bundling [info] bundle built ✓ should pass through on updates (1419ms) [debug] cleaning up automatic rebuild (autoWatch=true) [debug] created browserify bundle: /tmp/491bc11f907c4749ef4ac11da2b11bed.browserify.js [info] registering rebuild (autoWatch=true) [debug] add bundle to config.files at position 0 [debug] building bundle [debug] updating test/fixtures/b.js in bundle [debug] bundling [info] 740 bytes written (0.01 seconds) [info] bundle built sinon.reset is deprecated and will be removed from the public API in a future version of sinon. [debug] files changed [debug] resetting bundle [debug] bundling [info] 731 bytes written (0.01 seconds) [info] bundle updated ✓ should update on change (3717ms) [debug] cleaning up [debug] created browserify bundle: /tmp/9e86738847fc2e30163bf84136f2b831.browserify.js [debug] add bundle to config.files at position 0 [debug] building bundle [debug] updating test/fixtures/error.js in bundle [debug] files changed [debug] bundling [error] bundle error [error] /home/etienne/Documents/repos/karma-browserify/test/fixtures/error.js:3 invalid[) syntax] ^ ParseError: Unexpected token ✓ should handle bundle error (710ms) [debug] cleaning up [debug] created browserify bundle: /tmp/1c2ed0d9586298e2a7aae09ff598ed1b.browserify.js [info] registering rebuild (autoWatch=true) [debug] add bundle to config.files at position 0 [debug] building bundle [debug] updating test/fixtures/b.js in bundle [debug] resetting bundle [debug] bundling [info] 740 bytes written (0.01 seconds) [info] bundle updated [debug] bundling [info] 740 bytes written (0.01 seconds) [info] bundle built sinon.reset is deprecated and will be removed from the public API in a future version of sinon. [debug] files changed [debug] files changed [debug] resetting bundle [debug] bundling [debug] resetting bundle [debug] bundling [error] bundle error [error] /home/etienne/Documents/repos/karma-browserify/test/fixtures/a.js:1 unpoarsable / {{ code ^ ParseError: Unexpected token [info] bundle updated [error] bundle error [error] /home/etienne/Documents/repos/karma-browserify/test/fixtures/a.js:1 unpoarsable / {{ code ^ ParseError: Unexpected token [info] bundle updated ✓ should handle bundle update error (3719ms) [debug] cleaning up [debug] created browserify bundle: /tmp/157dd59a58224af6f3902f9d4d178d77.browserify.js [info] registering rebuild (autoWatch=true) [debug] add bundle to config.files at position 0 [debug] building bundle [debug] updating test/fixtures/b.js in bundle [debug] files changed [debug] files changed [debug] bundling [info] 740 bytes written (0.01 seconds) [info] bundle built sinon.reset is deprecated and will be removed from the public API in a future version of sinon. [debug] resetting bundle [debug] bundling [debug] resetting bundle [debug] bundling [info] 740 bytes written (0.01 seconds) [info] bundle updated [info] 740 bytes written (0.01 seconds) [info] bundle updated [debug] files changed [debug] files changed [debug] files changed [debug] resetting bundle [debug] removing missing file /home/etienne/Documents/repos/karma-browserify/test/fixtures/b.js [debug] bundling [debug] resetting bundle [debug] removing missing file /home/etienne/Documents/repos/karma-browserify/test/fixtures/b.js [debug] bundling [debug] resetting bundle [debug] removing missing file /home/etienne/Documents/repos/karma-browserify/test/fixtures/b.js [debug] bundling [info] 471 bytes written (0.00 seconds) [info] 471 bytes written (0.00 seconds) [info] 471 bytes written (0.00 seconds) [info] bundle updated [info] bundle updated [info] bundle updated ✓ should handle file remove (3722ms) [debug] cleaning up browserify [debug] created browserify bundle: /tmp/6d93d2ef6adf4fb48342b2fe6bbef8d0.browserify.js [debug] add bundle to config.files at position 0 [debug] building bundle [debug] updating test/fixtures/a.js in bundle [debug] bundling [info] bundle built ✓ should configure externalRequireName (748ms) [debug] cleaning up [debug] created browserify bundle: /tmp/20c38b4eecf3f8ef151eb464a19f4526.browserify.js [debug] add bundle to config.files at position 0 [debug] building bundle [debug] updating test/fixtures/transform.js in bundle [debug] bundling [info] bundle built ✓ should configure transform (715ms) [debug] cleaning up [debug] created browserify bundle: /tmp/896f864487c0638d6ad9524d6d7dc2fd.browserify.js [debug] add bundle to config.files at position 0 [debug] building bundle [debug] updating test/fixtures/transform.js in bundle [debug] bundling [info] bundle built ✓ should configure transform with options (714ms) [debug] cleaning up [debug] created browserify bundle: /tmp/04c18910044dde48f1182ed022f62cc7.browserify.js [debug] add bundle to config.files at position 0 [debug] building bundle [debug] updating test/fixtures/configure.js in bundle [debug] bundling [info] bundle built ✓ should support configure hook in the options (710ms) [debug] cleaning up [debug] created browserify bundle: /tmp/3053ed9dbe6471c7e4cd64feaead980d.browserify.js [debug] add bundle to config.files at position 0 [debug] building bundle [debug] updating test/fixtures/a.js in bundle [debug] bundling [info] bundle built ✓ should configure debug with source map support (716ms) [debug] cleaning up [debug] created browserify bundle: /tmp/fcb27876ddcaa06f1d757ad470e978ea.browserify.js [debug] add bundle to config.files at position 0 [debug] building bundle [debug] updating test/fixtures/plugin.ts in bundle [debug] bundling [info] bundle built ✓ should configure plugin with options (1693ms) [debug] cleaning up [debug] created browserify bundle: /tmp/3dfda9c3ed857a6049eb8509caf29d0f.browserify.js [debug] add bundle to config.files at position 0 [debug] building bundle [debug] updating test/fixtures/transform.js in bundle [debug] bundling [debug] building bundle [debug] updating test/fixtures/transform.js in bundle [info] bundle built [debug] resetting bundle [debug] bundling ✓ should persist transforms (1419ms) [info] bundle built [debug] cleaning up [debug] created browserify bundle: /tmp/dcf9d899bb05e37c6f4fc34d7ed196fa.browserify.js [debug] add bundle to config.files at position 0 [debug] building bundle [debug] updating test/fixtures/plugin.ts in bundle [debug] bundling [debug] building bundle [debug] updating test/fixtures/plugin.ts in bundle [info] bundle built [debug] resetting bundle [debug] bundling ✓ should persist plugins (2857ms) [info] bundle built [debug] cleaning up 31 passing (53s)