From 6e8618ae0f55bcaa4cfaaa579b4e21f9f74b117d Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Thu, 13 Apr 2023 18:43:23 +0100 Subject: refactor(cli): move runTests() and runBenchmarks() to rust (#18563) Stores the test/bench functions in rust op state during registration. The functions are wrapped in JS first so that they return a directly convertible `TestResult`/`BenchResult`. Test steps are still mostly handled in JS since they are pretty much invoked by the user. Allows removing a bunch of infrastructure for communicating between JS and rust. Allows using rust utilities for things like shuffling tests (`Vec::shuffle`). We can progressively move op and resource sanitization to rust as well. Fixes #17122. Fixes #17312. --- cli/tests/testdata/test/doc_only.out | 1 - 1 file changed, 1 deletion(-) (limited to 'cli/tests/testdata/test/doc_only.out') diff --git a/cli/tests/testdata/test/doc_only.out b/cli/tests/testdata/test/doc_only.out index a6cb89df0..2b8b6dc73 100644 --- a/cli/tests/testdata/test/doc_only.out +++ b/cli/tests/testdata/test/doc_only.out @@ -1,5 +1,4 @@ Check [WILDCARD]/test/doc_only/mod.ts$2-5.ts -running 0 tests from ./test/doc_only/mod.ts ok | 0 passed | 0 failed ([WILDCARD]) -- cgit v1.2.3