1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/tools
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
..
hyper_hello upgrade rust dependencies (#4270) 2020-03-07 15:51:23 -05:00
testdata refactor: unit test runner communicates using TCP socket (#4336) 2020-03-13 15:57:32 +01:00
benchmark.py Remove //tests symlink (#3849) 2020-02-02 16:55:22 -05:00
benchmark_test.py Fix bug in strace parser (#3720) 2020-01-20 09:49:18 -05:00
build_benchmark_jsons.py Replace libdeno with rusty_v8 (#3556) 2020-01-05 09:19:29 -05:00
deno_dir_test.py Remove //tests symlink (#3849) 2020-02-02 16:55:22 -05:00
deno_http_proxy.ts feat: Deno.args now does not include script (#3628) 2020-01-09 11:37:01 -07:00
deno_tcp.ts feat: Deno.args now does not include script (#3628) 2020-01-09 11:37:01 -07:00
deno_tcp_proxy.ts rename dial to connect and dialTLS to connectTLS (#3710) 2020-01-18 18:35:12 +01:00
docs.py fix tools/docs.py (#4210) 2020-03-02 16:22:12 +01:00
format.py Replace libdeno with rusty_v8 (#3556) 2020-01-05 09:19:29 -05:00
http_benchmark.py feat: support UDP sockets (#3946) 2020-02-21 11:26:54 -05:00
http_server.py fetch_cached_remote_source support redirect URL without base (#4099) 2020-02-28 09:04:18 -05:00
lint.py Add clippy to /tools/lint.py (#4132) 2020-02-27 14:30:41 -05:00
node_http.js Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
node_http_proxy.js Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
node_tcp.js Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
node_tcp_promise.js Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
node_tcp_proxy.js add tcp proxy benchmarks + split out website section for proxy req/s (#2464) 2019-06-06 22:46:18 -04:00
package.json Upgrade node_modules, change tagline, clean up root directory (#3247) 2019-10-31 19:33:27 -07:00
pylintrc update pylintrc (#3618) 2020-01-08 01:51:11 +01:00
sha256sum.py Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
sync_node_modules.py Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
sync_python_modules.py Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
target_test.py Remove //tests symlink (#3849) 2020-02-02 16:55:22 -05:00
test_format.py Upgrade pylint (#2917) 2019-09-11 16:47:42 -04:00
test_util.py Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
third_party.py Replace libdeno with rusty_v8 (#3556) 2020-01-05 09:19:29 -05:00
throughput_benchmark.py Remove //tests symlink (#3849) 2020-02-02 16:55:22 -05:00
upload_docs.py fix cargo-publish-on-tag (#3781) 2020-01-24 14:24:27 -05:00
util.py Remove //tests symlink (#3849) 2020-02-02 16:55:22 -05:00
util_test.py change copyrights from 2019 to 2020 (#3733) 2020-01-21 10:01:55 -05:00