1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00
denoland-deno/cli
Bartek Iwańczuk aab1acaed1
refactor: unit test runner communicates using TCP socket (#4336)
Rewrites "cli/js/unit_test_runner.ts" to communicate with spawned subprocesses 
using TCP socket.

* Rewrite "Deno.runTests()" by factoring out testing logic to private "TestApi" 
  class. "TestApi" implements "AsyncIterator" that yields "TestEvent"s, 
  which is an interface for different types of event occuring during running
  tests.

* Add "reporter" argument to "Deno.runTests()" to allow users to provide custom
  reporting mechanism for tests. It's represented by "TestReporter" interface,
  that implements hook functions for each type of "TestEvent". If "reporter"
  is not provided then default console reporting is used (via 
  "ConsoleReporter").

* Change how "unit_test_runner" communicates with spawned suprocesses. Instead
  of parsing text data from child's stdout, a TCP socket is created and used
  for communication. "unit_test_runner" can run in either "master" or "worker"
  mode. Former is responsible for test discovery and establishing needed
  permission combinations; while latter (that is spawned by "master") executes
  tests that match given permission set.

* Use "SocketReporter" that implements "TestReporter" interface to send output
  of tests to "master" process. Data is sent as stringified JSON and then
  parsed by "master" as structured data. "master" applies it's own reporting 
  logic to output tests to console (by reusing default "ConsoleReporter").
2020-03-13 15:57:32 +01:00
..
compilers Add global "quiet" flag (#4135) 2020-03-10 08:26:17 -04:00
js refactor: unit test runner communicates using TCP socket (#4336) 2020-03-13 15:57:32 +01:00
ops upgrade: Rust 1.42.0 (#4331) 2020-03-12 18:07:57 +01:00
tests refactor: unit test runner communicates using TCP socket (#4336) 2020-03-13 15:57:32 +01:00
build.rs Clean up how we use opIds (#4118) 2020-02-25 09:14:27 -05:00
Cargo.toml v0.36.0 2020-03-11 19:13:01 -04: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 http_cache: change .headers.json to .metadata.json (#4175) 2020-02-28 13:15:31 -05: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 reorg: cli/js/compiler/, move more API to cli/js/web/ (#4310) 2020-03-11 10:53:06 +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 rewrite normalize_path (#4143) 2020-02-26 22:11:52 +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.