We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I want my Gulp build to fail, if there are errors in CasperJS tests. Is there a possibility to use something like "fail reporter"?
The text was updated successfully, but these errors were encountered:
Hello, thanks for issue Can you give some usage example of your case? I mean part of gulpfile etc.
Sorry, something went wrong.
Hi @ZAYEC77, thanks for your reply. So the following is a part of my Gulp file:
var casperJs = require("gulp-casperjs"); ... // casperjs runs on phantomjs gulp.task("test", function () { gulp.src("tests/maintest.js") .pipe(casperJs()) }); ... gulp.task("dev", [ "watch", "serve", "test" ]);
The solution that I found is to include the gulp-exit dependency on my code. So, I updated it as:
gulp-exit
var casperJs = require("gulp-casperjs"), exit = require("gulp-exit"); ... // casperjs runs on phantomjs gulp.task("test", function () { gulp.src("tests/portaltest.js") .pipe(casperJs()) .pipe(exit()); });
Do you have to propose me a better approach?
@skananitos Do you use gulp-exit for termination of casperjs, do you have problem with this? Or you want better fail report?
casperjs
No branches or pull requests
Hi, I want my Gulp build to fail, if there are errors in CasperJS tests. Is there a possibility to use something like "fail reporter"?
The text was updated successfully, but these errors were encountered: