summaryrefslogtreecommitdiff
path: root/testing/main.ts
diff options
context:
space:
mode:
authorVincent LE GOFF <g_n_s@hotmail.fr>2019-03-28 17:29:27 +0100
committerRyan Dahl <ry@tinyclouds.org>2019-03-28 12:29:27 -0400
commit8f0407efad81ea8c255daf03c0e19b6bae3b88b6 (patch)
treecdbf1b9914c2a01450364fbe3f7790564f91cc55 /testing/main.ts
parentb7022848f6b68cb6a79eb1593ad683ff4d217116 (diff)
Fix parallel testing (denoland/deno_std#309)
Fixes denoland/deno_std#308 Co-authored by @chiefbiiko Original: https://github.com/denoland/deno_std/commit/cac060f3882ba5df2e0e641350b33ef771c8ee44
Diffstat (limited to 'testing/main.ts')
-rw-r--r--testing/main.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/testing/main.ts b/testing/main.ts
index 077d662ee..00502b237 100644
--- a/testing/main.ts
+++ b/testing/main.ts
@@ -1,3 +1,11 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import { runTests } from "./mod.ts";
-runTests();
+
+async function main() {
+ // Testing entire test suite serially
+ await runTests();
+ // Testing parallel execution on a subset that does not depend on exec order
+ await runTests({ parallel: true, only: /^testing/ });
+}
+
+main();