diff options
| author | HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com> | 2024-09-16 22:38:40 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-16 19:38:40 +0000 |
| commit | e0b9c745c15720914f14996bf357d5b375e2dbd8 (patch) | |
| tree | 0dfc717082bedb2eec13eceb5cdeb1ef12b8f7f5 /tests/specs/test/fail_fast | |
| parent | 6ce16145dd12d8a272cb543871276c33c8201a37 (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/fail_fast')
| -rw-r--r-- | tests/specs/test/fail_fast/__test__.jsonc | 5 | ||||
| -rw-r--r-- | tests/specs/test/fail_fast/fail_fast.out | 20 | ||||
| -rw-r--r-- | tests/specs/test/fail_fast/fail_fast.ts | 30 | ||||
| -rw-r--r-- | tests/specs/test/fail_fast/fail_fast_other.ts | 3 |
4 files changed, 58 insertions, 0 deletions
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(); +}); |
