Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find plugins #7

Open
rmorrin opened this issue Apr 15, 2014 · 6 comments
Open

Cannot find plugins #7

rmorrin opened this issue Apr 15, 2014 · 6 comments

Comments

@rmorrin
Copy link

rmorrin commented Apr 15, 2014

I'm getting a warning when trying to use the karma-jasmine plugin:

INFO: Configuration found: {PATH OMITTED}\karma.unit.conf.js
INFO: Starting karma server...
WARN [plugin]: �Cannot find plugin "karma-jasmine".
  Did you forget to install it ?
  npm install karma-jasmine --save-dev

All output stops after this stage. Any ideas? Everything works fine when running from the command line.

Thanks
Ryan

@lennybacon
Copy link
Owner

How did you start from the command line. In KarmaVS its done here: https://github.com/lennybacon/KarmaVS/blob/master/src/KarmaVs/KarmaVsPackage.cs#L271

@rmorrin
Copy link
Author

rmorrin commented Apr 15, 2014

Currently using Grunt to watch files and trigger tests on change, but if I switch to my web project's directory and run karma start karma.unit.conf.js manually everything works as expected.

Looks to be what the extension is doing too?

@lennybacon
Copy link
Owner

Can you check the environment variables in bot environments and compare them?

@rmorrin
Copy link
Author

rmorrin commented Apr 22, 2014

I can't see anything obviously different. The tests also work if I try the same karma commands in the package manager console. Does the extension run in this same environment?

@lennybacon
Copy link
Owner

Can you start karma from the package manager console inside visual studio?

@rmorrin
Copy link
Author

rmorrin commented May 14, 2014

Yes, tests are working correctly from the package manager console. I've included a copy of the output if that helps at all.

PM> karma start --no-colors .\{PATH OMITTED}\karma.unit.conf.js
INFO [karma]: Karma v0.12.6 server started at http://localhost:9876/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.7 (Windows 8)]: Connected on socket vM4jv-o_Pbh_jlCTMlXF with id 691523

...Tests Omitted...

PhantomJS 1.9.7 (Windows 8): Executed 30 of 30 SUCCESS (0.119 secs / 0.115 secs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants