From b9a965c607966efff91118e9a6f604c8f48ba88e Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Fri, 27 Aug 2021 03:21:58 +0800 Subject: refactor(cli): introduce module specifier test modes (#11769) This commit merges the two vectors of specifiers into a single one introducing the concept of a "TestMode" which is a tri-state enum specifying how a specifier is to be tested (as documentation, as an executable module or as both). This is determined during the collection phase and determines how a specifier will be executed based on how the specifier was collected (directly or not) and if it has an eligible media_type when fetched. For example "deno test README.md" is marked as documentation because, while it is a direct inclusion it is not an executable media type therefore will only have the fenced code blocks that can be parsed from it tested. --- cli/tests/testdata/test/shuffle.out | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/testdata/test/shuffle.out b/cli/tests/testdata/test/shuffle.out index 04dd08ee2..ec2f9692d 100644 --- a/cli/tests/testdata/test/shuffle.out +++ b/cli/tests/testdata/test/shuffle.out @@ -1,6 +1,6 @@ -Check [WILDCARD]/test/shuffle/foo_test.ts -Check [WILDCARD]/test/shuffle/baz_test.ts Check [WILDCARD]/test/shuffle/bar_test.ts +Check [WILDCARD]/test/shuffle/baz_test.ts +Check [WILDCARD]/test/shuffle/foo_test.ts running 10 tests from [WILDCARD]/test/shuffle/foo_test.ts test test 2 ... ok ([WILDCARD]) test test 3 ... ok ([WILDCARD]) -- cgit v1.2.3