From e0b9c745c15720914f14996bf357d5b375e2dbd8 Mon Sep 17 00:00:00 2001 From: HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com> Date: Mon, 16 Sep 2024 22:38:40 +0300 Subject: chore: deprecate test itests (#25512) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR is part of #22907 --------- Signed-off-by: HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com> Co-authored-by: Bartek IwaƄczuk --- tests/specs/test/fail_fast/__test__.jsonc | 5 +++++ tests/specs/test/fail_fast/fail_fast.out | 20 ++++++++++++++++++ tests/specs/test/fail_fast/fail_fast.ts | 30 +++++++++++++++++++++++++++ tests/specs/test/fail_fast/fail_fast_other.ts | 3 +++ 4 files changed, 58 insertions(+) create mode 100644 tests/specs/test/fail_fast/__test__.jsonc create mode 100644 tests/specs/test/fail_fast/fail_fast.out create mode 100644 tests/specs/test/fail_fast/fail_fast.ts create mode 100644 tests/specs/test/fail_fast/fail_fast_other.ts (limited to 'tests/specs/test/fail_fast') diff --git a/tests/specs/test/fail_fast/__test__.jsonc b/tests/specs/test/fail_fast/__test__.jsonc new file mode 100644 index 000000000..a819df39f --- /dev/null +++ b/tests/specs/test/fail_fast/__test__.jsonc @@ -0,0 +1,5 @@ +{ + "args": "test --fail-fast fail_fast.ts fail_fast_other.ts", + "exitCode": 1, + "output": "fail_fast.out" +} diff --git a/tests/specs/test/fail_fast/fail_fast.out b/tests/specs/test/fail_fast/fail_fast.out new file mode 100644 index 000000000..164c9c6a6 --- /dev/null +++ b/tests/specs/test/fail_fast/fail_fast.out @@ -0,0 +1,20 @@ +Check [WILDCARD]/fail_fast.ts +Check [WILDCARD]/fail_fast_other.ts +running 10 tests from ./fail_fast.ts +test 1 ... FAILED ([WILDCARD]) + + ERRORS + +test 1 => ./fail_fast.ts:[WILDCARD] +error: Error + throw new Error(); + ^ + at [WILDCARD]/fail_fast.ts:2:9 + + FAILURES + +test 1 => ./fail_fast.ts:[WILDCARD] + +FAILED | 0 passed | 1 failed ([WILDCARD]) + +error: Test failed diff --git a/tests/specs/test/fail_fast/fail_fast.ts b/tests/specs/test/fail_fast/fail_fast.ts new file mode 100644 index 000000000..637e825ec --- /dev/null +++ b/tests/specs/test/fail_fast/fail_fast.ts @@ -0,0 +1,30 @@ +Deno.test("test 1", () => { + throw new Error(); +}); +Deno.test("test 2", () => { + throw new Error(); +}); +Deno.test("test 3", () => { + throw new Error(); +}); +Deno.test("test 4", () => { + throw new Error(); +}); +Deno.test("test 5", () => { + throw new Error(); +}); +Deno.test("test 6", () => { + throw new Error(); +}); +Deno.test("test 7", () => { + throw new Error(); +}); +Deno.test("test 8", () => { + throw new Error(); +}); +Deno.test("test 9", () => { + throw new Error(); +}); +Deno.test("test 0", () => { + throw new Error(); +}); diff --git a/tests/specs/test/fail_fast/fail_fast_other.ts b/tests/specs/test/fail_fast/fail_fast_other.ts new file mode 100644 index 000000000..02aa878cf --- /dev/null +++ b/tests/specs/test/fail_fast/fail_fast_other.ts @@ -0,0 +1,3 @@ +Deno.test("test 11", () => { + throw new Error(); +}); -- cgit v1.2.3