本文整理汇总了TypeScript中gulp-protractor.protractor函数的典型用法代码示例。如果您正苦于以下问题:TypeScript protractor函数的具体用法?TypeScript protractor怎么用?TypeScript protractor使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了protractor函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1:
.then((server: any) => {
gulp
.src(join(Config.DEV_DEST, '**/*.e2e-spec.js'))
.pipe(protractor({ configFile: 'protractor.conf.js' }))
.on('error', (error: string) => { throw error; })
.on('end', () => { server.close(done); });
});
开发者ID:GoEngin,项目名称:GoEngin,代码行数:7,代码来源:e2e.ts
示例2:
.then((server: any) => {
gulp
.src('./dist/dev/**/*.e2e-spec.js')
.pipe(protractor({ configFile: 'protractor.conf.js' }))
.on('error', (error: string) => { throw error; })
.on('end', () => { server.close(done); });
});
开发者ID:onpoc,项目名称:onpoc.github.io,代码行数:7,代码来源:e2e.ts
示例3:
gulp.task('protractor', ['webdriverUpdate'], () => {
return gulp.src(env.path.spec.e2e)
.pipe(protractor({
configFile: env.path.protractor.config.default,
}))
.on('error', (e: Error) => { throw e });
});
开发者ID:MSakamaki,项目名称:rxjs-handson,代码行数:8,代码来源:protractor.ts
示例4:
gulp.task('e2edebug', () => {
return gulp.src(paths.scripts_integration_tests_js)
.pipe(prot({
configFile: "protractor_conf.js",
args: ['debug', '--baseUrl', 'http://localhost:61916']
}))
.on('error', e=> { throw e; });
});
开发者ID:larrifax,项目名称:AngularTypescriptSkeleton,代码行数:8,代码来源:gulpfile.ts
示例5:
.then((server: any) => {
testFiles.pipe(protractor({
configFile: $.config.test.protractor
})).on('error', (err: any) => {
// Make sure failed tests cause gulp to exit non-zero
throw err;
}).on('end', () => server.close(cb));
});
开发者ID:AlexKryzh,项目名称:angular-typescript-seed,代码行数:8,代码来源:protractor.ts
示例6: runProtractor
export function runProtractor(done) {
return gulp.src(`${e2ePath}/**.js`)
.pipe(protractor({
configFile: __dirname + '/../../protractor.conf.js',
args: [
'--baseUrl',
CLIOptions.hasFlag('baseUrl') ? CLIOptions.getFlagValue('baseUrl') : 'http://127.0.0.1:9000'
]
}))
.on('end', function() { done(); })
.on('error', function(e) { throw e; });
};
开发者ID:j-party,项目名称:game,代码行数:12,代码来源:e2e.ts
示例7: function
() => {
let specs = argv.specs || TEST_DIR + '/' + DEBUGGER_NAMESPACE + '/tests/e2e/tag_detail_view.feature';
var args = [
'--baseUrl',
baseUrl + DEBUGGER_NAMESPACE + '/'
];
return gulp.src(specs)
.pipe(protractor.protractor({
configFile: 'e2e.conf.js',
args: args
}))
.on('error', function(err) {
throw err;
});
}
开发者ID:lindsaymacvean,项目名称:seventag,代码行数:19,代码来源:Gulpfile.ts
示例8: del
gulp.task('test:e2e', ['test:server', 'test:buildjs'], () => {
return gulp.src(PATH.src.e2e)
.pipe(gulpProtractor({
configFile: __dirname + '/protractor.config.js'
}))
.on('error', (e: any) => {
console.log(`
------------------------------------------------------------------------------------
For first-time user, we need to update webdrivers
$ node_modules/protractor/selenium/webdriver-manager update
------------------------------------------------------------------------------------
`);
throw e;
})
.on('end', () => { // when process exits:
del([
PATH.src.base + '/apps/**/*.css',
PATH.src.base + '/assets/styles/*.css'
])
});
});
开发者ID:TOKOFE,项目名称:a2-select,代码行数:21,代码来源:gulpfile.ts
示例9:
gulp.task('protractor', (cb) => {
gulp.src(['test/e2e/**/*.e2e.ts'], { read: false }).pipe(protractor({
configFile: 'test/protractor.conf.js'
})).on('end', cb);
});
开发者ID:Vheissu,项目名称:cli,代码行数:5,代码来源:protractor.ts
注:本文中的gulp-protractor.protractor函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论