Closed vvakame closed 10 years ago
umm... sorry, this issue is karma's issue.
this issue reproduction with npm install karma@0.10.9
command.
I am looking forward to the release of new grunt-karma :+1:
I'm reporting to the karma repository https://github.com/karma-runner/karma/issues/940
That issue can't be fixed in karma, because of it affects only previous version, which it can be rewriten. So that, it should be fixed here by changing of the dependency
@just-boris Karma is having a bad dependency referenced right? grunt-karma@0.6.2
is providing the correct karma version and it's karma itself whom is requiring karma-coffe-preprocessor
We can be successfully installed karma@0.12.0. if give me released in support of this, it is possible to cope with increasing the version grunt-karma.
I read on the following link that you should avoid using the tilde versionning for peerDependencies: http://yeoman.io/blog/cleanup.html
So I resolved the issue on my end by forking grunt-karma and changing the karma peerDependency to ">=0.10"
But I now have the following error:
Running "karma:continuous" (karma) task
Warning: No provider for "framework:jasmine"! (Resolving: framework:jasmine) Use --force to continue.
@jlowcs you installed karma 0.12 which no longer bundles any frameworks you'll have to install them yourself, e.g. npm install --save-dev karma-jasmine
.
Indeed @Dignifiedquire, thank you.
I now get another error, though:
Running "karma:continuous" (karma) task
INFO [karma]: Karma v0.12.0 server started at http://localhost:9090/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.7 (Windows 7)]: Connected on socket l_MJrn6wV9lZkZZ-vp_o with id 19971276
PhantomJS 1.9.7 (Windows 7): Executed 0 of 1 SUCCESS (0 secs / 0 secs)
Fatal error: Cannot call method 'push' of undefined
EDIT: forced the use of karma 0.10.9 and karma-coffee-preprocessor 0.1.3 as a temporary fix.
EDIT2: because of that fix, I don't need to use my fork anymore
Not sure but that error looks like it comes from somewhere in your tests. Maybe some files weren't loaded?
I don't think so, especially since it works with an older version of Karma.
I have removed the test files from the test folder and I still get the error:
INFO [karma]: Karma v0.12.24 server started at http://localhost:8888/
INFO [launcher]: Starting browser PhantomJS
WARN [watcher]: Pattern "C:/path/yo/test/mock/**/*.js" does not match any file.
WARN [watcher]: Pattern "C:/path/yo/test/spec/**/*.js" does not match any file.
INFO [PhantomJS 1.9.7 (Windows 7)]: Connected on socket apl_ZNxIsWp_PkoMzDLW with id 96828921
PhantomJS 1.9.7 (Windows 7): Executed 0 of 0 SUCCESS (0 secs / 0 secs)
Fatal error: Cannot call method 'push' of undefined
Execution Time (2014-10-24 20:14:50 UTC)
With Firefox as browser I get the same error:
INFO [karma]: Karma v0.12.24 server started at http://localhost:8888/
INFO [launcher]: Starting browser Firefox
WARN [watcher]: Pattern "C:/work/workspaces/sbs-setools-gitblit/sbs-admin/sbs-admin-ui/yo/test/mock/**/*.js" does not match any file.
WARN [watcher]: Pattern "C:/work/workspaces/sbs-setools-gitblit/sbs-admin/sbs-admin-ui/yo/test/spec/**/*.js" does not match any file.
INFO [Firefox 31.0.0 (Windows 7)]: Connected on socket GFFeMdX1RXZaXAZ22nwt with id 84338179
Firefox 31.0.0 (Windows 7): Executed 0 of 0 SUCCESS (0 secs / 0 secs)
Fatal error: Cannot call method 'push' of undefined
Execution Time (2014-10-24 20:30:27 UTC)
OK, the issue seems to be an old version of the karma-junit-reporter. I had version 0.1.0 in my package.json. After updating to 0.2.2 the error went away: https://github.com/karma-runner/karma-junit-reporter/issues/11
fail to install grunt-karma (maybe caused by karma 0.12.0 released)