1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/tests/specs/test
Matt Mastracci 596a2996cf
feat(cli): Add slow test warning (#23874)
By default, uses a 60 second timeout, backing off 2x each time (can be
overridden using the hidden `DENO_SLOW_TEST_TIMEOUT` which we implement
only really for spec testing.

```
Deno.test(async function test() {
  await new Promise(r => setTimeout(r, 130_000));
});
```

```
$ target/debug/deno test /tmp/test_slow.ts 
Check file:///tmp/test_slow.ts
running 1 test from ../../../../../../tmp/test_slow.ts
test ...'test' is running very slowly (1m0s)
'test' is running very slowly (2m0s)
 ok (2m10s)

ok | 1 passed | 0 failed (2m10s)
```

---------

Signed-off-by: Matt Mastracci <matthew@mastracci.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-05-22 08:08:27 -06:00
..
include_relative_pattern_dot_slash chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
sanitizer_with_error chore(specs): use jsonc for metadata file (#22946) 2024-03-15 17:27:52 +00:00
sanitizer_with_top_level_ops chore(specs): use jsonc for metadata file (#22946) 2024-03-15 17:27:52 +00:00
slow_test feat(cli): Add slow test warning (#23874) 2024-05-22 08:08:27 -06:00
test_and_bench fix: don't panic in test and bench if ops not available (#23055) 2024-03-24 16:16:45 -07:00
type_check_with_doc fix(test): proper type checking for files with doc tests (#23654) 2024-05-02 18:13:51 +00:00
worker_large_output fix(cli): Identify and fix a test deadlock (#23411) 2024-04-16 15:14:59 -06:00