summaryrefslogtreecommitdiff
path: root/tests/specs/test/filter
diff options
context:
space:
mode:
authorHasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com>2024-09-16 22:38:40 +0300
committerGitHub <noreply@github.com>2024-09-16 19:38:40 +0000
commite0b9c745c15720914f14996bf357d5b375e2dbd8 (patch)
tree0dfc717082bedb2eec13eceb5cdeb1ef12b8f7f5 /tests/specs/test/filter
parent6ce16145dd12d8a272cb543871276c33c8201a37 (diff)
chore: deprecate test itests (#25512)
This PR is part of #22907 --------- Signed-off-by: HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com> Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'tests/specs/test/filter')
-rw-r--r--tests/specs/test/filter/__test__.jsonc5
-rw-r--r--tests/specs/test/filter/filter/a_test.ts3
-rw-r--r--tests/specs/test/filter/filter/b_test.ts3
-rw-r--r--tests/specs/test/filter/filter/c_test.ts3
-rw-r--r--tests/specs/test/filter/main.out12
5 files changed, 26 insertions, 0 deletions
diff --git a/tests/specs/test/filter/__test__.jsonc b/tests/specs/test/filter/__test__.jsonc
new file mode 100644
index 000000000..b7c1bb9fe
--- /dev/null
+++ b/tests/specs/test/filter/__test__.jsonc
@@ -0,0 +1,5 @@
+{
+ "args": "test --filter=foo filter",
+ "exitCode": 0,
+ "output": "main.out"
+}
diff --git a/tests/specs/test/filter/filter/a_test.ts b/tests/specs/test/filter/filter/a_test.ts
new file mode 100644
index 000000000..a3f32968a
--- /dev/null
+++ b/tests/specs/test/filter/filter/a_test.ts
@@ -0,0 +1,3 @@
+Deno.test("foo", function () {});
+Deno.test("bar", function () {});
+Deno.test("baz", function () {});
diff --git a/tests/specs/test/filter/filter/b_test.ts b/tests/specs/test/filter/filter/b_test.ts
new file mode 100644
index 000000000..a3f32968a
--- /dev/null
+++ b/tests/specs/test/filter/filter/b_test.ts
@@ -0,0 +1,3 @@
+Deno.test("foo", function () {});
+Deno.test("bar", function () {});
+Deno.test("baz", function () {});
diff --git a/tests/specs/test/filter/filter/c_test.ts b/tests/specs/test/filter/filter/c_test.ts
new file mode 100644
index 000000000..a3f32968a
--- /dev/null
+++ b/tests/specs/test/filter/filter/c_test.ts
@@ -0,0 +1,3 @@
+Deno.test("foo", function () {});
+Deno.test("bar", function () {});
+Deno.test("baz", function () {});
diff --git a/tests/specs/test/filter/main.out b/tests/specs/test/filter/main.out
new file mode 100644
index 000000000..605214b8e
--- /dev/null
+++ b/tests/specs/test/filter/main.out
@@ -0,0 +1,12 @@
+Check [WILDCARD]/filter/a_test.ts
+Check [WILDCARD]/filter/b_test.ts
+Check [WILDCARD]/filter/c_test.ts
+running 1 test from [WILDCARD]/filter/a_test.ts
+foo ... ok ([WILDCARD])
+running 1 test from [WILDCARD]/filter/b_test.ts
+foo ... ok ([WILDCARD])
+running 1 test from [WILDCARD]/filter/c_test.ts
+foo ... ok ([WILDCARD])
+
+ok | 3 passed | 0 failed | 6 filtered out ([WILDCARD])
+