summaryrefslogtreecommitdiff
path: root/test_util/src
AgeCommit message (Collapse)Author
2021-03-26remove macro_use (#9884)Ryan Dahl
2021-03-25upgrade: Rust 1.51.0 (#9895)Yusuke Tanaka
2021-02-24test: Fix --reload in integration_tests (#9345)Yosi Pramajaya
This commit removes redundant "--reload" args because "util::deno_cmd" recreates "DENO_DIR". This commit also fixes ta_reload in integration tests to actually test reload.
2021-02-21fix(op_crates/websocket): default to close code 1005 (#9339)DjDeveloper
Currently if WebSocket is closed without code, it will error while on Chrome it would close with code 1005 instead. Co-authored-by: crowlKats <13135287+crowlKats@users.noreply.github.com>
2021-02-16feat(cli): support auth tokens for accessing private modules (#9508)Kitson Kelly
Closes #5239
2021-02-02chore: remove std directory (#9361)Casper Beyer
This removes the std folder from the tree. Various parts of the tests are pretty tightly dependent on std (47 direct imports and 75 indirect imports, not counting the cli tests that use them as fixtures) so I've added std as a submodule for now.
2021-02-01refactor: Reorganise integration tests (#9282)Bartek Iwańczuk
This commit reorganises cli/tests/integration_tests.rs. All integration tests had been moved into integration module, which allows to run only integration tests by "cargo test integration". Additionally some tests were further grouped under nested modules like "inspector", "file_watcher" or "repl".
2021-01-19feat(unstable): add Deno.resolveDns API (#8790)Yusuke Tanaka
2021-01-17benchmark: cleanup serde_json values being passed around (#9115)William Perron
2021-01-13build: disable cafile_* tests and use slow runners (#9089)Luca Casonato
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2021-01-10upgrade: tokio 0.1 in test_util crate (#8885)Yosi Pramajaya
This commit upgrades "tokio" and crates from tokio ecosystem in "test_util" crate.
2021-01-08feat: denort binary (#9041)Luca Casonato
This commit adds new binary target called "denort". It is a "lite" version of "deno" binary that can only execute code embedded inside the binary itself. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-01-05tests: add web platform test runner (#8990)Luca Casonato
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-01-02fix(test_util): make hyper server single-threaded (#8951)Ben Noordhuis
Use Tokio's single-threaded scheduler. The hyper server is used as a point of comparison for the (single-threaded!) benchmarks in cli/bench. We're not comparing apples to apples if we use the default multi-threaded scheduler. This drops the requests/sec from 284k to 130k on my 12 core Ryzen 5 system. That still leaves a 50k gap for us to close. Working on it!
2020-12-30fix(op_crates/fetch): correct regexp for fetch header (#8927)Rich Trott
Fix bug in regular expression and make the regular expression more strict. In a string passed to new RegExp(), '[\t\s]' is identical to '[ts]' and not `/[\t\s]/`. For that, the backslash needs to be escaped in the string. Futhermore, `\t` is the tab character and is included in the special regexp value `\s` so is unnecessary. That would reduce the RegExp to new RegExp(`^${value}\\s*;?`) but there's no point in matching 0 or more space characters followed by 0 or one semi-colons as that will match no matter what follows `value`. To make it more strict, require one of space, semicolon, or end-of-string after value.
2020-12-24refactor(test_util): replace "warp" with "hyper" (#8846)Yosi Pramajaya
This commit rewrites "test_server" to use "hyper" instead of "warp" in an effort to reduce number of dependencies.
2020-12-09fix(op_crates/fetch): support non-ascii response headers value (#8600)Jae-Heon Ji
2020-11-28chore: clippy future cleanups (#8514)Kitson Kelly
2020-11-16fix(cli): local sources are not cached in memory (#8328)Kitson Kelly
Fixes #4743 Closes #5253 Fixes #5631 Fixes #6116 Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2020-11-13refactor(cli+core): various cleanups in Rust (#8336)KNnut
2020-11-05build: rewrite tools/ scripts to deno (#8247)Bartek Iwańczuk
This commit rewrites scripts in "tools/" directory to use Deno instead of Python. In return it allows to remove huge number of Python packages in "third_party/".
2020-10-26chore: add bundle_no_check benchmark (#8130)Luca Casonato
2020-10-26fix(cli): properly handle roots with extensions that don't match media type ↵Kitson Kelly
(#8114)
2020-09-21chore: add copyright (#7593)tokiedokie
2020-09-05feat: Implement WebSocket API (#7051)crowlKats
2020-09-04fix: Handle bad redirects more gracefully (#7342)Ryan Dahl
2020-08-28Move benchmarks to Rust (#7134)Valentin Anger
All benchmarks are done in Rust and can be invoked with `cargo bench`. Currently this has it's own "harness" that behaves like `./tools/benchmark.py` did. Because of this tests inside `cli/bench` are currently not run. This should be switched to the language provided harness once the `#[bench]` attribute has been stabilized.
2020-08-18refactor: permissions (#7074)Nayeem Rahman
2020-08-10Remove unnecessary drop calls (#7007)Ryan Dahl
2020-08-03fix(cli): add support for non-UTF8 source files (#6789)Maayan Hanin
Fixes: #5542
2020-08-03feat: hash file names in gen cache (#6911)Luca Casonato
2020-07-24fix: deno-types directive should have higher precedence than ↵Bartek Iwańczuk
X-TypeScript-Types header (#6761)
2020-07-13fix(cli/fetch): fix relative redirect (#6715)Marcos Casagrande
2020-07-09fix(cli): panic when stdio is null on windows (#6528)Maayan Hanin
Fixes: #6409
2020-07-06share HTTP server between threads (attempt 2) (#6652)Ryan Dahl
2020-07-06Remove tools/hyper_hello (#6651)Ryan Dahl
2020-07-04chore: port http_server.py to rust (#6364)Ryan Dahl
2020-06-29ignore PoisonError in test_server (#6567)Ryan Dahl
2020-06-26Create new DENO_DIR for each test (#6506)Ryan Dahl
2020-06-25Revert "chore: share HTTP server between tests (#6362)" (#6475)Bartek Iwańczuk
This reverts commit 70147ee56418c3d67a29070c01746a44d353e855.
2020-06-18chore: share HTTP server between tests (#6362)Bartek Iwańczuk
2020-06-18chore(test): move testing utilities to test_util crate (#6360)Bartek Iwańczuk