From 2438d5ba8c911933679206884ff80f2686ad6379 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Wed, 14 Jul 2021 11:53:07 +0200 Subject: [PATCH] Add a new "botbrowsertest" gulp-task, to allow running only the browser tests on the bots Currently it's possible to run e.g. `gulp unittest`, `gulp fonttest`, and `gulp integrationtest` *separately* on the bots; see https://github.com/mozilla/botio-files-pdfjs However, it's not possible to run *only* the `gulp browsertest` command on the bots without also running the full test-suite. In some cases, e.g. if the "browsertest" times out, having a way to only re-run those would thus save some time and resources. If/when this patch lands, I'll follow-up with a patch adding a new `on_cmd_browsertest.js` file to the https://github.com/mozilla/botio-files-pdfjs repository. --- gulpfile.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index f7a74e703..19467a77d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1607,6 +1607,21 @@ gulp.task( }) ); +gulp.task( + "botbrowsertest", + gulp.series( + setTestEnv, + "generic", + "components", + function runBotBrowserTest() { + return streamqueue( + { objectMode: true }, + createTestSource("browser (no reftest)", true) + ); + } + ) +); + gulp.task( "unittest", gulp.series(setTestEnv, "generic", function runUnitTest() {