Tests not always running
See original GitHub issueCan’t get how to exactly reproduce it but it seems to be depending on when runner and compilation starts. If the runner is started and compilation not yet done, then the suit will not run.
--- karma-webpack/example ‹master* M› » karma start 127 ↵
WARN [karma]: Port 9876 in use
INFO [karma]: Karma v0.12.1 server started at http://localhost:9877/
INFO [launcher]: Starting browser PhantomJS
Hash: f415b7798b75e5251339
Version: webpack 1.1.0
Time: 6ms
Asset Size Chunks Chunk Names
webpack: bundle is now VALID.
webpack: bundle is now invalid.
2014-03-28 10:29 node[4862] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-03-28 10:29 node[4862] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
Hash: b79bf627a90c35d205b4
Version: webpack 1.1.0
Time: 32ms
Asset Size Chunks Chunk Names
_js/test/aTest.js 4547 0 [emitted] test/aTest.js
_js/1.chunk.js 117 1 [emitted]
_js/test/bTest.coffee 4132 2 [emitted] test/bTest.coffee
chunk {0} _js/test/aTest.js (test/aTest.js) 679 [rendered]
[0] ./test/aTest.js 628 {0} [built]
[1] ./fixtures/file.js 18 {0} [built]
[3] ./fixtures/file.coffee 33 {0} [built]
chunk {1} _js/1.chunk.js 18 {0} {2}
[2] ./fixtures/file.js?1 18 {1} [built]
chunk {2} _js/test/bTest.coffee (test/bTest.coffee) 398 [rendered]
[0] ./test/bTest.coffee 398 {2} [built]
webpack: bundle is now VALID.
WARN [launcher]: PhantomJS have not captured in 60000 ms, killing.
INFO [launcher]: Trying to start PhantomJS again (1/2).
I always have this issue then building a bigger bundle.
Issue Analytics
- State:
- Created 9 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Tests not running in Test Explorer - visual studio
All tests are running, all tests are showing the right test outcome. However, the tests are not running when using the Visual Studio...
Read more >Visual Studio 2022 Test Explorer always showing test as "Not ...
NET 4.8 project and running individual or all tests with the Test Explorer, the tests are executed but they always shows as “Not...
Read more >Java test runner did not run test and always shows skipped.
When I try to use this function to test on JUnit, the tests are not actually running and all of my cases are...
Read more >Multiple unit tests not running until VS restart, tests show as ...
When I run the unit tests, all of them immediately show as "Inconclusive: Test not run" in the R# Unit Test Session window....
Read more >Run All does not run all unit tests - MSDN - Microsoft
As you can see in the screenshot, the progress bar is at its end, but there are still more than 1300 Not Run...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve solved the issue by increasing the
browserNoActivityTimeout
in karma config. It seems it took too long to compile a bundle so the browser was killed before the bundle was ready.@okonet 👍 This solved the issue for me as well, is there anyway we can make this fix easier to see? Seems to be pretty common for webpack, browserify, and other pre-compiled processes.