Я настраиваю модульное тестирование пользовательского интерфейса karma на сервере jenkins, и я хочу запустить браузер firefox
от Jenkins. При выполнении процесса сборки я получаю следующие ошибки из консоли Jenkins.
Не уверен, как установить плагин firefox в jenkins.
�[32m17 02 2020 09:26:07.204:INFO [karma]: �[39mKarma v1.7.0 server started at http://0.0.0.0:9876/
�[32m17 02 2020 09:26:07.204:INFO [launcher]: �[39mLaunching browser firefox with unlimited concurrency
�[31m17 02 2020 09:26:07.205:ERROR [launcher]: �[39mCannot load browser "firefox": it is not registered! Perhaps you are missing some plugin?
�[36m17 02 2020 09:26:07.205:DEBUG [karma]: �[39mRegistered a load error of type launcher with name firefox
�[36m17 02 2020 09:26:07.205:DEBUG [launcher]: �[39mFinished all browsers
�[31m17 02 2020 09:26:07.205:ERROR [karma]: �[39mFound 1 load error
�[36m17 02 2020 09:26:07.206:DEBUG [launcher]: �[39mDisconnecting all browsers
Warning: Task "karma:unit" failed.� Use --force to continue.
karma.conf
module.exports = (config) ->
config.set
basePath: "."
browsers: ["Firefox"]
frameworks: ["jasmine"]
files: ["src/main/webapp/resources/vendor/jquery/jquery.min.js",
"src/main/webapp/resources/vendor/jquery-ui/jquery.ui.core.min.js",
"src/main/webapp/resources/vendor/jquery-ui/jquery.ui.datepicker.min.js",
"src/main/webapp/resources/vendor/angular/angular.min.js",
"src/main/webapp/resources/vendor/angular-sanitize/angular-sanitize.js",
"src/main/webapp/resources/vendor/angular-ui-router/angular-ui-router.min.js",
"src/main/webapp/resources/vendor/angular-resource-master/angular-resource.js",
"src/main/webapp/resources/vendor/angular-translate/angular-translate.js",
"src/main/webapp/resources/vendor/angular-ui-date/date.js",
"src/main/webapp/resources/vendor/select2/select2.min.js",
"src/main/webapp/resources/vendor/angular-ui-select2/select2.js",
"src/main/webapp/resources/vendor/ngUpload/ng-upload.js",
"src/main/webapp/resources/vendor/angular-bootstrap/ui-bootstrap.min.js",
"src/main/webapp/resources/vendor/spin.js/spin.js",
"src/main/webapp/resources/vendor/angular-spinner/angular-spinner.js",
"src/main/webapp/resources/vendor/underscore/underscore-min.js",
"src/main/webapp/resources/vendor/angular-mocks/angular-mocks.js",
"src/main/webapp/resources/vendor/bootstrap-tagsinput.zip/bootstrap-tagsinput.min.js",
"src/main/webapp/resources/vendor/angular-once/once.js",
"src/main/webapp/resources/vendor/quick-ng-repeat/quick-ng-repeat.js",
"src/main/client/**/*.coffee",
"src/test/client/**/*.coffee"]
plugins: [
'karma-jasmine',
'karma-script-launcher',
'karma-firefox-launcher',
'karma-junit-reporter',
'karma-coverage',
'karma-coffee-preprocessor',
'karma-html-reporter'
]
preprocessors: {
"src/main/client/**/*.coffee": ["coffee", "coverage"]
"src/test/client/**/*.coffee": ["coffee"]
}
reporters: [
'dots', 'junit', 'coverage', 'html'
]
junitReporter: {
outputFile: 'target/test-results.xml'
}
coverageReporter:
type: "text"
dir: "target/coverage/"
htmlReporter:
outputDir: 'target/karma_html'
template: __dirname + '/jasmine_template.html'
logLevel: config.LOG_DEBUG
captureTimeout: 60000
browserNoActivityTimeout: 360000
package.json
{
"name": "internal",
"version": "0.0.1",
"private": "true",
"dependencies": {
"coffee-script": "~1.6.3",
"bower-installer": "0.8.1",
"bower": "1.3.8"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-coffeelint": "0.0.7",
"grunt-contrib-coffee": "~0.7.0",
"grunt-contrib-jade": "~0.8.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-less": "~0.8.2",
"grunt-contrib-watch": "~0.5.3",
"grunt-contrib-cssmin": "0.7.0",
"grunt-contrib-concat": "0.3.0",
"grunt-contrib-uglify": "0.3.2",
"grunt-preprocess": "4.0.0",
"grunt-env": "0.4.1",
"grunt-plato": "~0.2.1",
"grunt-karma": "~2.0.0",
"karma-script-launcher": "1.0.0",
"karma-chrome-launcher": "~0.1.0",
"karma-firefox-launcher": "~1.0.1",
"karma-html2js-preprocessor": "1.1.0",
"karma-coffee-preprocessor": "1.0.1",
"karma-jasmine": "~0.1.3",
"karma-requirejs": "1.1.0",
"karma-ie-launcher": "~0.1",
"karma-junit-reporter": "1.2.0",
"karma": "1.7.0",
"karma-coverage": "1.1.1",
"grunt-ver": "~0.2.4",
"karma-html-reporter": "~0.2.7"
}
}