在VSTS管道中使用以下Gulp配置进行量角器/茉莉E2E测试。
步骤“挂起”,该过程将继续进行(除非我停止构建)。
Gulp输出
2018-12-04T09:59:55.4013612Z [09:59:55] gulp-angular-protractor - We will stop the Protractor engine
2018-12-04T09:59:55.4084940Z { [Error: protractor exited with code 199]
2018-12-04T09:59:55.4085554Z message: 'protractor exited with code 199',
2018-12-04T09:59:55.4086500Z plugin: 'gulp-angular-protractor',
2018-12-04T09:59:55.4086650Z showProperties: true,
2018-12-04T09:59:55.4086909Z showStack: false,
2018-12-04T09:59:55.4087899Z __safety: { toString: [Function: bound ] } }
Gulpfile.js
/*********************
#Author: David Redmayne
#Company: Guestline
#Application: DBM
*********************/
var gulp = require("gulp");
var gulpProtractorAngular = require("gulp-angular-protractor");
gulp.task("runtests", callback => {
gulp
.src(["./specs/01_dbm_wp.js"])
.pipe(gulpProtractorAngular({
configFile: "SmokeTest.js",
debug: false,
autoStartStopServer: true
}))
.on("error", e => {
console.log(e);
})
.on("end", callback);
});
在VSTS管道中,Gulp任务在npm install
之后JUnit Reporter
之后
有什么建议吗?
谢谢 大卫