summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest.ts2
-rw-r--r--testing/main.ts3
-rw-r--r--testing/mod.ts4
3 files changed, 6 insertions, 3 deletions
diff --git a/test.ts b/test.ts
index b9fcd74e0..6850fc5af 100755
--- a/test.ts
+++ b/test.ts
@@ -23,3 +23,5 @@ import "testing/test.ts";
import "textproto/test.ts";
import "ws/sha1_test.ts";
import "ws/test.ts";
+
+import "testing/main.ts";
diff --git a/testing/main.ts b/testing/main.ts
new file mode 100644
index 000000000..d7e703697
--- /dev/null
+++ b/testing/main.ts
@@ -0,0 +1,3 @@
+// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
+import { runTests } from "mod.ts";
+runTests();
diff --git a/testing/mod.ts b/testing/mod.ts
index 42f3939c5..762d37c48 100644
--- a/testing/mod.ts
+++ b/testing/mod.ts
@@ -238,7 +238,7 @@ function green_ok() {
return FG_GREEN + "ok" + RESET;
}
-async function runTests() {
+export async function runTests() {
let passed = 0;
let failed = 0;
@@ -283,5 +283,3 @@ async function runTests() {
}, 0);
}
}
-
-setTimeout(runTests, 0);