我已经配置了grunt任务来启动量角器webdriver然后用protractor-runner运行量角器测试,grunt配置就像
.....
protractor_webdriver: {
start: {
options: {
path: 'node_modules/protractor/bin/',
command: 'webdriver-manager start --standalone'
}
}
},
protractor: {
options: {
configFile: proctatorConf,
noColor: false,
args: {
}
},
auto: {
options: {
keepAlive: true,
args: {
}
}
},
singlerun: {
options: {
keepAlive: false,
args: {
}
}
}
}
....
grunt.registerTask('test:e2e', [
'shell:update_webdriver',
'protractor_webdriver:start',
'protractor:singlerun'
]);
在Jenkins中我安装了xvfb-plugin并在作业配置上说启动Xvfb屏幕并在作业完成后关闭,
问题是当jenkins执行grunt test:e2e
命令时,它执行所有测试,给我失败信息,如
Finished in 16.455 seconds
[31m4 tests, 6 assertions, 4 failures
和詹金斯的工作挂起了,这可能是什么问题?