You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running npm run test, the test runner seems to be running twice
09 12 2016 14:59:41.735:INFO [karma]: Karma v1.2.0 server started at http://localhost:9876/
09 12 2016 14:59:41.735:INFO [launcher]: Launching browser Chrome with unlimited concurrency
09 12 2016 14:59:41.748:INFO [launcher]: Starting browser Chrome
[default] Checking started in a separate process...
09 12 2016 14:59:42.516:INFO [Chrome 54.0.2840 (Mac OS X 10.12.1)]: Connected on socket /#xRHn2DueZ-XPVO2NAAAA with id 72282202
[default] Ok, 1.309 sec.
Chrome 54.0.2840 (Mac OS X 10.12.1): Executed 11 of 13 (skipped 2) SUCCESS (3.635 secs / 1.043 secs)
Chrome 54.0.2840 (Mac OS X 10.12.1): Executed 11 of 13 (skipped 2) SUCCESS (3.635 secs / 1.043 secs)
The text was updated successfully, but these errors were encountered:
Not sure if it's related, but when karma starts, it looks like webpack is getting run for every spec file?
$ npm run test
> seed-webapp@0.3.0 test /Users/obuckley/Workspace/github/thegreenhouseio/angular2-webpack-seed
> rimraf ./reports && karma start ./karma.conf.js
webpack: wait until bundle finished:
webpack: wait until bundle finished:
webpack: wait until bundle finished:
webpack: wait until bundle finished:
webpack: wait until bundle finished:
The line webpack: wait until bundle finished: seems to be be equal to the number of .spec.ts files in the repo
This configuration is more performant, but you cannot run single test anymore (only the complete suite). The above configuration generates a webpack bundle for each test. For many testcases this can result in many big files. The alterative configuration creates a single bundle with all testcases.
When running
npm run test
, the test runner seems to be running twiceThe text was updated successfully, but these errors were encountered: