Tests aren't detected anymore migrating from 1.5.0 to 1.6.0 (and 1.7.0)

63 views
Skip to first unread message

andrew...@gmail.com

unread,
May 24, 2017, 12:55:39 AM5/24/17
to karma-users
I work on the free-software project Yorick. It uses RequireJS and I don't end any relative paths with .js, so I have a few shims and complications to make karma go. Recently when upgrading from 1.5.0 to 1.6.0 karma doesn't seem to find any of my tests anymore. I was hoping somebody here might have some insight.

Here is an example automated test that failed:


> yor...@0.8.8 test /home/travis/build/gnu-lorien/yorick
> karma start public/karma.conf.js --single-run --browsers PhantomJS

 [36m24 05 2017 04:07:45.544:DEBUG [config]:  [39mautoWatch set to false, because of singleRun
 [36m24 05 2017 04:07:45.548:DEBUG [plugin]:  [39mLoading karma-* from /home/travis/build/gnu-lorien/yorick/node_modules
 [36m24 05 2017 04:07:45.549:DEBUG [plugin]:  [39mLoading plugin /home/travis/build/gnu-lorien/yorick/node_modules/karma-chrome-launcher.
 [36m24 05 2017 04:07:45.563:DEBUG [plugin]:  [39mLoading plugin /home/travis/build/gnu-lorien/yorick/node_modules/karma-jasmine.
 [36m24 05 2017 04:07:45.564:DEBUG [plugin]:  [39mLoading plugin /home/travis/build/gnu-lorien/yorick/node_modules/karma-phantomjs-launcher.
 [36m24 05 2017 04:07:45.600:DEBUG [plugin]:  [39mLoading plugin /home/travis/build/gnu-lorien/yorick/node_modules/karma-requirejs.
 [36m24 05 2017 04:07:45.614:DEBUG [web-server]:  [39mInstantiating middleware
 [33m24 05 2017 04:07:45.662:WARN [watcher]:  [39mPattern "/home/travis/build/gnu-lorien/yorick/public/scripts/tests/*.js" does not match any file.
 [33m24 05 2017 04:07:45.719:WARN [watcher]:  [39mAll files matched by "/home/travis/build/gnu-lorien/yorick/public/scripts/app/tests/test-main.js" were excluded or matched by prior matchers.
 [32m24 05 2017 04:07:45.792:INFO [karma]:  [39mKarma v1.7.0 server started at http://0.0.0.0:8082/
 [32m24 05 2017 04:07:45.792:INFO [launcher]:  [39mLaunching browser PhantomJS with unlimited concurrency
 [32m24 05 2017 04:07:45.801:INFO [launcher]:  [39mStarting browser PhantomJS
 [36m24 05 2017 04:07:45.801:DEBUG [temp-dir]:  [39mCreating temp dir at /tmp/karma-96032657
 [36m24 05 2017 04:07:45.805:DEBUG [launcher]:  [39m/home/travis/build/gnu-lorien/yorick/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /tmp/karma-96032657/capture.js
 [36m24 05 2017 04:07:45.894:DEBUG [web-server]:  [39mserving: /home/travis/build/gnu-lorien/yorick/node_modules/karma/static/client.html
 [36m24 05 2017 04:07:45.904:DEBUG [web-server]:  [39mserving: /home/travis/build/gnu-lorien/yorick/node_modules/karma/static/karma.js
 [36m24 05 2017 04:07:45.939:DEBUG [karma]:  [39mA browser has connected on socket MI1zLF9zSSUU9KT4AAAA
 [36m24 05 2017 04:07:45.945:DEBUG [web-server]:  [39mupgrade /socket.io/?EIO=3&transport=websocket&sid=MI1zLF9zSSUU9KT4AAAA
 [32m24 05 2017 04:07:46.008:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]:  [39mConnected on socket MI1zLF9zSSUU9KT4AAAA with id 96032657
 [36m24 05 2017 04:07:46.009:DEBUG [launcher]:  [39mPhantomJS (id 96032657) captured in 0.216 secs
 [36m24 05 2017 04:07:46.013:DEBUG [phantomjs.launcher]:  [39m

 [36m24 05 2017 04:07:46.014:DEBUG [middleware:karma]:  [39mcustom files null null null
 [36m24 05 2017 04:07:46.014:DEBUG [middleware:karma]:  [39mServing static request /context.html
 [36m24 05 2017 04:07:46.017:DEBUG [web-server]:  [39mserving: /home/travis/build/gnu-lorien/yorick/node_modules/karma/static/context.html
 [36m24 05 2017 04:07:46.020:DEBUG [middleware:source-files]:  [39mRequesting /absolute/home/travis/build/gnu-lorien/yorick/node_modules/requirejs/require.js?b1010092f15879164973aaba0cc26c7298118d76 /
 [36m24 05 2017 04:07:46.020:DEBUG [middleware:source-files]:  [39mFetching /home/travis/build/gnu-lorien/yorick/node_modules/requirejs/require.js
 [36m24 05 2017 04:07:46.021:DEBUG [web-server]:  [39mserving (cached): /home/travis/build/gnu-lorien/yorick/node_modules/requirejs/require.js
 [36m24 05 2017 04:07:46.022:DEBUG [middleware:source-files]:  [39mRequesting /absolute/home/travis/build/gnu-lorien/yorick/node_modules/karma-requirejs/lib/adapter.js?a0765fc3eacb39184893303c3bc2e821cb041787 /
 [36m24 05 2017 04:07:46.022:DEBUG [middleware:source-files]:  [39mFetching /home/travis/build/gnu-lorien/yorick/node_modules/karma-requirejs/lib/adapter.js
 [36m24 05 2017 04:07:46.023:DEBUG [middleware:source-files]:  [39mRequesting /absolute/home/travis/build/gnu-lorien/yorick/node_modules/jasmine-core/lib/jasmine-core/jasmine.js?916005cc407925f4764668d61d04888d59258f5d /
 [36m24 05 2017 04:07:46.023:DEBUG [middleware:source-files]:  [39mFetching /home/travis/build/gnu-lorien/yorick/node_modules/jasmine-core/lib/jasmine-core/jasmine.js
 [36m24 05 2017 04:07:46.023:DEBUG [middleware:source-files]:  [39mRequesting /absolute/home/travis/build/gnu-lorien/yorick/node_modules/karma-jasmine/lib/boot.js?945a38bf4e45ad2770eb94868231905a04a0bd3e /
 [36m24 05 2017 04:07:46.023:DEBUG [middleware:source-files]:  [39mFetching /home/travis/build/gnu-lorien/yorick/node_modules/karma-jasmine/lib/boot.js
 [36m24 05 2017 04:07:46.024:DEBUG [middleware:source-files]:  [39mRequesting /absolute/home/travis/build/gnu-lorien/yorick/node_modules/karma-jasmine/lib/adapter.js?1e4f995124c2f01998fd4f3e16ace577bf155ba9 /
 [36m24 05 2017 04:07:46.024:DEBUG [middleware:source-files]:  [39mFetching /home/travis/build/gnu-lorien/yorick/node_modules/karma-jasmine/lib/adapter.js
 [36m24 05 2017 04:07:46.024:DEBUG [web-server]:  [39mserving (cached): /home/travis/build/gnu-lorien/yorick/node_modules/karma-requirejs/lib/adapter.js
 [36m24 05 2017 04:07:46.024:DEBUG [web-server]:  [39mserving (cached): /home/travis/build/gnu-lorien/yorick/node_modules/jasmine-core/lib/jasmine-core/jasmine.js
 [36m24 05 2017 04:07:46.025:DEBUG [web-server]:  [39mserving (cached): /home/travis/build/gnu-lorien/yorick/node_modules/karma-jasmine/lib/boot.js
 [36m24 05 2017 04:07:46.026:DEBUG [web-server]:  [39mserving (cached): /home/travis/build/gnu-lorien/yorick/node_modules/karma-jasmine/lib/adapter.js
 [36m24 05 2017 04:07:46.026:DEBUG [web-server]:  [39mserving: /home/travis/build/gnu-lorien/yorick/node_modules/karma/static/context.js
 [33m24 05 2017 04:07:56.010:WARN [PhantomJS 2.1.1 (Linux 0.0.0)]:  [39mDisconnected (1 times), because no message in 10000 ms.
 [31mPhantomJS 2.1.1 (Linux 0.0.0) ERROR [39m
  Disconnected, because no message in 10000 ms.

It appears to have stalled after setting up the files to serve. Only changing the version of karma back to 1.5.0, it happily moves passed this point:

https://api.travis-ci.org/jobs/235497095/log.txt?deansi=true

24 05 2017 04:42:04.202:DEBUG [web-server]: serving (cached): /home/travis/build/gnu-lorien/yorick/public/scripts/app/tests/test-main.js
24 05 2017 04:42:04.204:DEBUG [web-server]: serving (cached): /home/travis/build/gnu-lorien/yorick/node_modules/karma-jasmine/lib/adapter.js
24 05 2017 04:42:04.208:DEBUG [web-server]: serving (cached): /home/travis/build/gnu-lorien/yorick/node_modules/karma-jasmine/lib/boot.js
24 05 2017 04:42:04.211:DEBUG [web-server]: serving (cached): /home/travis/build/gnu-lorien/yorick/node_modules/karma-requirejs/lib/adapter.js
24 05 2017 04:42:04.213:DEBUG [web-server]: serving (cached): /home/travis/build/gnu-lorien/yorick/node_modules/jasmine-core/lib/jasmine-core/jasmine.js
24 05 2017 04:42:04.218:DEBUG [web-server]: serving: /home/travis/build/gnu-lorien/yorick/node_modules/karma/static/context.js
24 05 2017 04:42:04.254:DEBUG [middleware:source-files]: Requesting /base/scripts/app/tests/default-test.js?c87c6ccbf04c0da140f601c9cd7caf425145750a /
24 05 2017 04:42:04.254:DEBUG [middleware:source-files]: Fetching /home/travis/build/gnu-lorien/yorick/public/scripts/app/tests/default-test.js
24 05 2017 04:42:04.255:DEBUG [web-server]: serving (cached): /home/travis/build/gnu-lorien/yorick/public/scripts/app/tests/default-test.js
24 05 2017 04:42:04.259:DEBUG [middleware:source-files]: Requesting /base/scripts/app/tests/fast-test.js?e4c5aa4f3b72f5207f8099ec1fcc8ac4b15344c8 /
24 05 2017 04:42:04.259:DEBUG [middleware:source-files]: Fetching /home/travis/build/gnu-lorien/yorick/public/scripts/app/tests/fast-test.js
24 05 2017 04:42:04.260:DEBUG [web-server]: serving (cached): /home/travis/build/gnu-lorien/yorick/public/scripts/app/tests/fast-test.js

All of this code is entirely open and house on GitHub here: https://github.com/gnu-lorien/yorick/tree/develop. All of the shims I had to put together are in here: https://github.com/gnu-lorien/yorick/blob/develop/public/scripts/app/tests/test-main.js. If anybody has any insight into this I would really appreciate it.

Reply all
Reply to author
Forward
0 new messages