karma-runner / karma-phantomjs-launcher

A Karma plugin. Launcher for PhantomJS.
MIT License
281 stars 122 forks source link

Phantomjs not registered #3

Closed jmwood040 closed 11 years ago

jmwood040 commented 11 years ago

I am trying to set up automated testing using;

Jenkins karma *karma-launcher-phantomjs

When I run:

karma start karma-jenkins.conf.js

I get:

INFO [karma]: Karma v0.9.2 server started at http://localhost:9876/
WARN [launcher]: Launcher "phantomjs" is not registered!

My Google searches have not turn up anything.

Here are the details of my setup. Please let me know it there is anything else I can provide.

James


OS = CentOS 5.9 64 bit Selinux Disabled

node -v
v0.10.5

Installed from source

npm -v
1.2.18

Came with nodejs above

phantomjs --version
1.8.2

Executable located w/in karam-launcher

---karma-jenkins.conf.js--- ''' basePath = '../'; frameworks = ['jasmine'] files = [ 'app/lib/angular/angular.js', 'app/lib/angular/angular-_.js', 'test/lib/angular/angular-mocks.js', 'app/js/_/.js', // this is a local copy of a dradis-provided module, if e2e fail and unit tests pass, check if // these files are out of sync 'test/unit/websockets.js', // used to simplify common test data tasks 'test/unit/mockData.js', 'test/unit/*/.js' ];

autoWatch = false; singleRun = true;

browsers = ['phantomjs'];

junitReporter = { outputFile: 'test_out/unit.xml', suite: 'unit' }; '''

vojtajina commented 11 years ago

Add to your config:

plugins = ['karma-jasmine', 'karma-phantomjs-launcher'];
jmwood040 commented 11 years ago

Thanks for the response.

I added the line mentioned above but still get the same warning.

James

kandaraj commented 11 years ago
This fixed me up :) Thanks vojtajina
plugins = ['karma-jasmine', 'karma-phantomjs-launcher'];
RobbinHabermehl commented 10 years ago

@jmwood040; browsers = ['phantomjs']; should be browsers = ['PhantomJS'];, mind the capitals.

brenwell commented 9 years ago

I had PhantomJs not PhantomJS thanks @RobbinHabermehl

ghost commented 9 years ago

that's it ,thanks @RobbinHabermehl

ellechir commented 8 years ago

Thank you! This fixed the error: plugins = ['karma-phantomjs-launcher'];

chrisdothtml commented 8 years ago

I was able to fix this by installing karma-phantomjs-launcher. Why do the config docs say that the PhantomJS launcher is installed with Karma if we need to add it in ourselves?

silviotroia commented 6 years ago

plugins : ['karma-jasmine', 'karma-phantomjs-launcher'] in karma.conf.js file. Tnx a lot