草庐IT

gulp-protractor

全部标签

angularjs - 运行 gulp 应用程序 :serve rails 时找不到模块 'require-dir' 错误

我安装了npm、bower和gulp。但是在运行gulpapp:serve时,我收到以下错误。请帮我。这是我运行的命令:sachin@sachin:~/Desktop/workspace/myproj/angular/ex(master)$gulpapp:serve我得到的结果:Error:Cannotfindmodule'require-dir'atFunction.Module._resolveFilename(module.js:338:15)atFunction.Module._load(module.js:280:25)atModule.require(module.js:3

node.js - 使用 gulp 时。有什么方法可以抑制某些任务的 'Started' 和 'Finished' 日志条目

使用gulp时。有没有办法抑制某些任务的“开始”和“完成”日志条目?我想使用依赖树,但树中有一些我不想记录的任务,因为它们是具有自己的日志记录工具的中间步骤。 最佳答案 您可以在gulpCLI中使用--silent标志来禁用所有gulp日志记录。https://github.com/gulpjs/gulp/blob/master/docs/CLI.md 关于node.js-使用gulp时。有什么方法可以抑制某些任务的'Started'和'Finished'日志条目,我们在StackOve

node.js - 如何使用 gulp 自动将其他 HTML 文件的链接添加到 index.html?

类似于WordPress博客上的存档页面。我正在使用这个gulpscript它可以生成多个页面,但在运行服务器并在浏览器中打开页面时只能显示一次。server:{baseDir:"./output",index:"test-template.html"},我希望test-template.html应该有链接模板A.html模板B.html模板C.html所以在浏览器中记住并输入这些文件的URL,我可以通过单击index.html页面上的链接打开有没有插件可以做到这一点? 最佳答案 有两个软件包可能会有所帮助。请仔细检查任务配置,以定

javascript - 在 Windows : Unable to kill process(es) 上使用 Gulp 进行 E2E 测试编排

我正在努力实现的目标此问题与anotheroneIrecentlyclosed有关带有可怕的hack™。IamtryingtowriteascriptthatcanbeusedastepinacontextofaCI/buildpipeline.ThescriptissupposedtorunProtractor-basedend-to-endtestsforourAngularsingle-pageapplication(SPA).Thescriptisrequiredtodothefollowingactions(inorder):runa.NETCoremicroservicec

javascript - 如何编写运行 Protractor/Selenium 浏览器自动化脚本的 AWS Lambda 脚本?

我非常喜欢AWSLambda函数,我想知道我想在这里做的事情是否可行。在我的本地机器上,我有一个Protractor配置文件://conf.jsexports.config={framework:'jasmine',seleniumAddress:'http://127.0.0.1:4444/wd/hub',specs:['automation-script.js'],capabilities:{browserName:'chrome'}}以及一个使用特定url加载浏览器窗口的脚本:describe('ProtractorDemoApp',function(){it('shouldha

javascript - 如何强制 gulp 调用同步运行?

我希望下面的gulp调用一个接一个地同步运行。但他们不服从命令。run-sequencenode模块在这里没有帮助,因为我不想连续运行gulp任务(即它的语法类似于gulp.task("mytask",["foo","bar","baz"]等),而是串联“调用”,如下所示。gulp.task("dostuff",function(callback){gulp.src("...").pipe(gulp.dest("...");gulp.src("...").pipe(gulp.dest("...");gulp.src("...").pipe(gulp.dest("...");callba

javascript - Gulp:调试 mocha 测试的目标

我有一组gulp.js运行我的mocha测试的目标,这些测试就像运行gulp-mocha的魅力一样。.问题:如何调试通过gulp运行的mocha测试?我想使用node-inspector之类的东西在我的src和测试文件中设置断点以查看发生了什么。我已经可以通过直接调用node来完成此操作:node--debug-brknode_modules/gulp/bin/gulp.jstest但我更喜欢为我包装这个的gulp目标,例如:gulp.task('test-debug','Rununittestsindebugmode',function(cb){//todo?});想法?我想避免使用

node.js - Protractor 错误,意外 token )

我正要开始学习Protractor并按照那里的简单教程http://www.protractortest.org/#/tutorial但不幸的是,运行此命令后出现奇怪的错误protractorconf.js[launcher]Processexitedwitherrorcode1/usr/local/lib/node_modules/protractor/node_modules/q/q.js:126throwe;SyntaxError:Unexpectedtoken)atgoog.loadModuleFromSource_(/usr/local/lib/node_modules/pr

javascript - Gulp,Mocha,观看不重新加载我的源文件

我正在尝试让gulp工作以帮助自动化一些单元测试。我有以下gulp文件。vargulp=require('gulp'),mocha=require('gulp-mocha');gulp.task('unit',function(){returngulp.src('test/unit/**/*.js').pipe(mocha({reporter:'spec'})).on('error',handleError);});gulp.task('watch',function(){gulp.watch(['src/**/*.js','test/unit/**/*.js'],['unit']);

node.js - 将不需要的功能(fdescribe、describe.only)检测为 Gulp 任务

如何在Node中检测代码库中不需要的函数的使用,尤其是Gulp?我正在检查无意破坏的规范,即ddescribe/fdescribe和iit/fitJasmine或.only和.skip用于Mocha://shouldbereportedfdescribe(function(){//shouldnotbereportedit(function(){varfit=...;this.fit=...;});//shouldnotbereported//fit(function(){...});//shouldbereportedxit(function(){...});//shouldbere