deno/cli/tools
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
..
bench fix(node): seperate worker module cache (#23634) 2024-05-16 07:09:35 +00:00
coverage fix(cli/coverage): invalid line id in html reporter (#23908) 2024-05-21 13:37:36 +02:00
init feat(init): use jsr specifier for @std/assert (#23073) 2024-03-27 18:51:52 +01:00
jupyter refactor(jupyter): use runtimelib for Jupyter structures and directory paths (#23826) 2024-05-21 22:35:21 +02:00
lint chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 2024-05-08 22:45:06 -04:00
registry fix(publish): always include config file when publishing (#23797) 2024-05-14 18:15:43 +00:00
repl chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 2024-05-08 22:45:06 -04:00
run fix(compile): relative permissions should be retained as relative (#23719) 2024-05-06 19:21:58 -04:00
test feat(cli): Add slow test warning (#23874) 2024-05-22 08:08:27 -06:00
vendor refactor(lsp): reuse CliGraphResolverOptions::sloppy_imports_resolver (#23764) 2024-05-13 17:55:31 +01:00
bundle.rs chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 2024-05-08 22:45:06 -04:00
check.rs fix(check): ignore certain diagnostics in remote modules and when publishing (#23119) 2024-03-31 16:39:40 -04:00
compile.rs fix(cli): Don't panic on invalid emit options (#23463) 2024-04-23 08:50:50 -07:00
doc.rs chore: update deno_doc (#23621) 2024-05-01 00:43:24 +00:00
fmt.rs chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 2024-05-08 22:45:06 -04:00
info.rs chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 2024-05-08 22:45:06 -04:00
installer.rs fix(node): seperate worker module cache (#23634) 2024-05-16 07:09:35 +00:00
mod.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
task.rs fix(task): do not error if node_modules folder not exists (#23920) 2024-05-21 16:12:14 -04:00
upgrade.rs chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 2024-05-08 22:45:06 -04:00