From 8f0407efad81ea8c255daf03c0e19b6bae3b88b6 Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Thu, 28 Mar 2019 17:29:27 +0100 Subject: 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 --- testing/main.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'testing/main.ts') 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(); -- cgit v1.2.3