Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Phantom Js Launcher wont run on Bamboo #140

Open
Andersog opened this issue Oct 21, 2016 · 1 comment
Open

Phantom Js Launcher wont run on Bamboo #140

Andersog opened this issue Oct 21, 2016 · 1 comment

Comments

@Andersog
Copy link

Andersog commented Oct 21, 2016

When running karma locally phantomjs runs fine, but when it's running as part of a bamboo build I get the error

Cannot find plugin "karma-PhantomJS-launcher". Did you forget to install it?

I'm using npm to locally install everything on the build agent, using a maven task with
https://github.com/eirslett/frontend-maven-plugin

When checking the build directory on the server, the phantomjs-prebuilt and karma-phantomjs-launcher are both present

karma config

module.exports = function (config) {
    config.set({
        ...
        autoWatch: false,   
        singleRun:true,
        frameworks: ['jasmine'],
        browsers: ['PhantomJS'],
        plugins: [
            'karma-PhantomJS-launcher',
            'karma-jasmine'
        ]
    });
};

packages.config


{
  "devDependencies": {
    "bower": "^1.7.7",    
    "grunt": "^1.0.1",
    "grunt-autoprefixer": "^3.0.4",
    "grunt-cli": "^1.2.0",
    "grunt-contrib-clean": "^1.0.0",
    "grunt-contrib-copy": "^1.0.0",
    "grunt-contrib-cssmin": "^1.0.2",
    "grunt-contrib-stylus": "^1.0.0",
    "grunt-contrib-uglify": "^2.0.0",
    "http-server": "^0.9.0",
    "is-number": "^3.0.0",
    "isobject": "^2.1.0",
    "jasmine-core": "^2.4.1",
    "karma": "^1.3.0",
    "karma-chrome-launcher": "^0.2.3",
    "karma-firefox-launcher": "^0.1.7",
    "karma-jasmine": "^1.0.2",
    "karma-phantomjs-launcher": "^1.0.2",
    "phantomjs-prebuilt": "^2.1.13",
    "protractor": "^3.2.2",
    "semver": "^5.3.0",
    "uglify": "^0.1.5"
  }
}
@zwolej
Copy link

zwolej commented Mar 20, 2017

I only guess that it should be karma-phantomjs-launcher without capital letters.

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

No branches or pull requests

2 participants