1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/cli/lsp/testing
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
..
collectors.rs perf(lsp): only store parsed sources for open documents (#23454) 2024-04-20 02:00:03 +01:00
definitions.rs perf(lsp): only store parsed sources for open documents (#23454) 2024-04-20 02:00:03 +01:00
execution.rs feat(cli): Add slow test warning (#23874) 2024-05-22 08:08:27 -06:00
lsp_custom.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
mod.rs perf(lsp): only store parsed sources for open documents (#23454) 2024-04-20 02:00:03 +01:00
server.rs perf(lsp): only store parsed sources for open documents (#23454) 2024-04-20 02:00:03 +01:00