From b34aa0bf6cb1fcf4af3a136c1898f97b0cce28ed Mon Sep 17 00:00:00 2001 From: Antonio Barcelos Date: Thu, 16 Sep 2021 15:49:09 +0200 Subject: [PATCH 1/2] testkit: Speedup the test by enable skip the browser tests Browser tests are consuming a huge amount of time and making the testkit PR take a long time just to change unrelated issue. The env var `TEST_DRIVER_SKIP_BROWSER` could be used to skip the browser tests. --- testkit/integration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testkit/integration.py b/testkit/integration.py index 6b40fd2c0..0f401a43b 100644 --- a/testkit/integration.py +++ b/testkit/integration.py @@ -8,7 +8,8 @@ def run(args): def test_driver(): - run(["gulp", "test-browser"]) + if os.environ.get("TEST_DRIVER_SKIP_BROWSER", False): + run(["gulp", "test-browser"]) run(["gulp", "test-nodejs-integration"]) From 75cf5b90b5ca47cfb98e6be9600a7bcc77a7c146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Barc=C3=A9los?= Date: Thu, 16 Sep 2021 16:02:17 +0200 Subject: [PATCH 2/2] Update testkit/integration.py Co-authored-by: Robsdedude --- testkit/integration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testkit/integration.py b/testkit/integration.py index 0f401a43b..5635d0cf3 100644 --- a/testkit/integration.py +++ b/testkit/integration.py @@ -8,7 +8,8 @@ def run(args): def test_driver(): - if os.environ.get("TEST_DRIVER_SKIP_BROWSER", False): + if (os.environ.get("TEST_DRIVER_SKIP_BROWSER", "false").lower() + in ("y", "yes", "t", "true", "1", "on")): run(["gulp", "test-browser"]) run(["gulp", "test-nodejs-integration"])