Closed jmwood040 closed 11 years ago
Add to your config:
plugins = ['karma-jasmine', 'karma-phantomjs-launcher'];
Thanks for the response.
I added the line mentioned above but still get the same warning.
James
@jmwood040; browsers = ['phantomjs'];
should be browsers = ['PhantomJS'];
, mind the capitals.
I had PhantomJs
not PhantomJS
thanks @RobbinHabermehl
that's it ,thanks @RobbinHabermehl
Thank you! This fixed the error: plugins = ['karma-phantomjs-launcher'];
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?
plugins : ['karma-jasmine', 'karma-phantomjs-launcher'] in karma.conf.js file. Tnx a lot
I am trying to set up automated testing using;
Jenkins karma *karma-launcher-phantomjs
When I run:
I get:
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
Installed from source
Came with nodejs above
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' }; '''