1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/cli
Bartek Iwańczuk 6e2df8c64f
feat: Deno.test() sanitizes ops and resources (#4399)
This PR brings assertOps and assertResources sanitizers to Deno.test() API.

assertOps checks that test doesn't leak async ops, ie. there are no unresolved
promises originating from Deno APIs. Enabled by default, can be disabled using 
Deno.TestDefinition.disableOpSanitizer.

assertResources checks that test doesn't leak resources, ie. all resources used
in test are closed. For example; if a file is opened during a test case it must be
explicitly closed before test case finishes. It's most useful for asynchronous
generators. Enabled by default, can be disabled using 
Deno.TestDefinition.disableResourceSanitizer.

We've used those sanitizers in internal runtime tests and it proved very useful in
surfacing incorrect tests which resulted in interference between the tests.

All tests have been sanitized.

Closes #4208
2020-03-18 19:25:55 -04:00
..
compilers Add global "quiet" flag (#4135) 2020-03-10 08:26:17 -04:00
js feat: Deno.test() sanitizes ops and resources (#4399) 2020-03-18 19:25:55 -04:00
ops Provide compiled JSON to TypeScript compiler. (#4404) 2020-03-18 12:39:53 -04:00
tests feat: Deno.test() sanitizes ops and resources (#4399) 2020-03-18 19:25:55 -04:00
build.rs Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
Cargo.toml Upgrade rust crates (#4412) 2020-03-17 17:42:22 -07:00
checksum.rs feat: lockfiles (#3231) 2019-11-03 10:39:27 -05:00
colors.rs Fix unwanted ANSI Reset Sequence (#4268) 2020-03-06 08:48:38 -05:00
deno_dir.rs refactor: rewrite HTTP cache for file fetcher (#4030) 2020-02-19 08:17:13 -05:00
diagnostics.rs feat: Add Deno.formatDiagnostics (#4032) 2020-02-24 14:48:14 -05:00
disk_cache.rs Do not panic and improve error message on cache failure (#3784) 2020-01-24 17:16:31 -05:00
file_fetcher.rs Add global "quiet" flag (#4135) 2020-03-10 08:26:17 -04:00
flags.rs doc(cli/flags): Reduce empty lines in help messages (#4312) 2020-03-10 19:23:08 -04:00
fmt.rs Improve dprint config (#4314) 2020-03-11 10:51:57 +01:00
fmt_errors.rs Do not convert exceptions to JSON and back (#4214) 2020-03-02 14:20:16 -08:00
fs.rs support permission mode in mkdir (#4286) 2020-03-11 16:14:23 -04:00
global_state.rs DenoFlags -> Flags (#4136) 2020-02-26 11:52:15 +01:00
global_timer.rs Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
http_cache.rs http_cache: change .headers.json to .metadata.json (#4175) 2020-02-28 13:15:31 -05:00
http_util.rs refactor: remove an unsafe and some boxing (#4398) 2020-03-16 10:46:31 -07:00
import_map.rs update references to testing/mod.ts in manual (#3973) 2020-02-11 21:50:20 +01:00
installer.rs Fix deno install file name including extra dot on Windows (#4243) 2020-03-04 00:40:56 -08:00
js.rs workers: proper TS libs, more spec-compliant APIs (#3812) 2020-01-29 18:54:23 +01:00
lib.rs Add global "quiet" flag (#4135) 2020-03-10 08:26:17 -04:00
lockfile.rs feat: lockfiles (#3231) 2019-11-03 10:39:27 -05:00
main.rs Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600) 2020-01-05 11:56:18 -05:00
metrics.rs feat: update metrics to track different op types (#4221) 2020-03-02 19:13:36 +01:00
msg.rs refactor: remove unneeded ErrorKinds (#3936) 2020-02-21 10:36:13 -05:00
op_error.rs Add Deno.umask (#4290) 2020-03-10 15:11:27 -04:00
permissions.rs Add global "quiet" flag (#4135) 2020-03-10 08:26:17 -04:00
README.md update readmes (#3765) 2020-01-23 22:32:52 +01:00
repl.rs refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
resolve_addr.rs refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
signal.rs refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
source_maps.rs replace source-mappings-map with rust-sourcemap (#4368) 2020-03-14 22:10:23 +01:00
startup_data.rs Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600) 2020-01-05 11:56:18 -05:00
state.rs feat: update metrics to track different op types (#4221) 2020-03-02 19:13:36 +01:00
test_runner.rs Add support for jsx/tsx for deno test (#4369) 2020-03-14 13:23:53 +01:00
test_util.rs Revert "chore: share HTTP server between tests (#3966)" (#4165) 2020-02-27 23:32:02 -08:00
tokio_util.rs workers: basic event loop (#3828) 2020-02-11 10:04:59 +01:00
version.rs Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600) 2020-01-05 11:56:18 -05:00
web_worker.rs refactor: remove cli/ops/files.rs (#4246) 2020-03-07 13:20:27 +01:00
worker.rs refactor: remove cli/ops/files.rs (#4246) 2020-03-07 13:20:27 +01:00

Deno CLI Crate

crates docs

This provides the actual deno executable and the user-facing APIs.

The deno crate uses the deno_core and deno_typescript to provide the executable.