summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/test
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-08-13 17:33:18 +0800
committerGitHub <noreply@github.com>2021-08-13 11:33:18 +0200
commit293eed0ef2de1bf1563811e3a1fe3fafb436636d (patch)
treec96ac33532e19738daf0ed8922255eff1e622057 /cli/tests/testdata/test
parentc1f97056f42d20158d469d023652f3b338411007 (diff)
test(cli): add test for test filtering (#11672)
Diffstat (limited to 'cli/tests/testdata/test')
-rw-r--r--cli/tests/testdata/test/filter.out12
-rw-r--r--cli/tests/testdata/test/filter/a_test.ts3
-rw-r--r--cli/tests/testdata/test/filter/b_test.ts3
-rw-r--r--cli/tests/testdata/test/filter/c_test.ts3
4 files changed, 21 insertions, 0 deletions
diff --git a/cli/tests/testdata/test/filter.out b/cli/tests/testdata/test/filter.out
new file mode 100644
index 000000000..5cb150897
--- /dev/null
+++ b/cli/tests/testdata/test/filter.out
@@ -0,0 +1,12 @@
+Check [WILDCARD]/test/filter/a_test.ts
+Check [WILDCARD]/test/filter/b_test.ts
+Check [WILDCARD]/test/filter/c_test.ts
+running 1 test from [WILDCARD]/test/filter/a_test.ts
+test foo ... ok ([WILDCARD])
+running 1 test from [WILDCARD]/test/filter/b_test.ts
+test foo ... ok ([WILDCARD])
+running 1 test from [WILDCARD]/test/filter/c_test.ts
+test foo ... ok ([WILDCARD])
+
+test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 6 filtered out ([WILDCARD])
+
diff --git a/cli/tests/testdata/test/filter/a_test.ts b/cli/tests/testdata/test/filter/a_test.ts
new file mode 100644
index 000000000..a3f32968a
--- /dev/null
+++ b/cli/tests/testdata/test/filter/a_test.ts
@@ -0,0 +1,3 @@
+Deno.test("foo", function () {});
+Deno.test("bar", function () {});
+Deno.test("baz", function () {});
diff --git a/cli/tests/testdata/test/filter/b_test.ts b/cli/tests/testdata/test/filter/b_test.ts
new file mode 100644
index 000000000..a3f32968a
--- /dev/null
+++ b/cli/tests/testdata/test/filter/b_test.ts
@@ -0,0 +1,3 @@
+Deno.test("foo", function () {});
+Deno.test("bar", function () {});
+Deno.test("baz", function () {});
diff --git a/cli/tests/testdata/test/filter/c_test.ts b/cli/tests/testdata/test/filter/c_test.ts
new file mode 100644
index 000000000..a3f32968a
--- /dev/null
+++ b/cli/tests/testdata/test/filter/c_test.ts
@@ -0,0 +1,3 @@
+Deno.test("foo", function () {});
+Deno.test("bar", function () {});
+Deno.test("baz", function () {});