1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00
A modern runtime for JavaScript and TypeScript. https://deno.com/
Find a file
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
.github upgrade: Rust 1.42.0 (#4331) 2020-03-12 18:07:57 +01:00
cli refactor: unit test runner communicates using TCP socket (#4336) 2020-03-13 15:57:32 +01:00
core v0.36.0 2020-03-11 19:13:01 -04:00
deno_typescript v0.36.0 2020-03-11 19:13:01 -04:00
std fix: Node polyfill fsAppend rework (#4322) 2020-03-12 10:12:27 -04:00
test_plugin upgrade rust dependencies (#4270) 2020-03-07 15:51:23 -05:00
third_party@b1103a02e8 upgrade: TypeScript 3.8 (#4100) 2020-02-25 15:33:19 -05:00
tools refactor: unit test runner communicates using TCP socket (#4336) 2020-03-13 15:57:32 +01:00
.editorconfig editorconfig: Don't insert final newline in .out files (#1686) 2019-02-07 11:31:49 -05:00
.eslintignore feat: dprint formatter (#3820) 2020-01-29 21:16:48 -05:00
.eslintrc.json Remove tsconfig files - they are not part of build process (#3262) 2019-11-04 18:13:28 -05:00
.gitattributes Upgrade node_modules, change tagline, clean up root directory (#3247) 2019-10-31 19:33:27 -07:00
.gitignore Update .gitignore 2019-12-02 08:05:29 -08:00
.gitmodules Replace libdeno with rusty_v8 (#3556) 2020-01-05 09:19:29 -05:00
.prettierignore Loader: support .wasm imports (#3328) 2019-11-14 08:31:39 -05:00
.prettierrc.json tools/format: format markdown files with prettier 2018-10-04 02:02:23 -07:00
.rustfmt.toml change copyrights from 2019 to 2020 (#3733) 2020-01-21 10:01:55 -05:00
Cargo.lock v0.36.0 2020-03-11 19:13:01 -04:00
Cargo.toml feat: first pass at native plugins (#3372) 2019-12-05 15:30:20 -05:00
LICENSE change copyrights from 2019 to 2020 (#3733) 2020-01-21 10:01:55 -05:00
README.md Use discord instead of gitter (#4253) 2020-03-04 19:49:51 -05:00
Releases.md v0.36.0 2020-03-11 19:13:01 -04:00

Deno

A secure runtime for JavaScript and TypeScript.

Build Status

Deno aims to provide a productive and secure scripting environment for the modern programmer. It is built on top of V8, Rust, and TypeScript.

Please read the introduction for more specifics.

Website

Manual

Install

API Reference

Style Guide

Module Repository

Releases

Chat

More links