summaryrefslogtreecommitdiff
path: root/tools/testdata
AgeCommit message (Collapse)Author
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-03-13refactor: unit test runner communicates using TCP socket (#4336)Bartek Iwańczuk
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-06Rename readDir -> readdir (#4225)dubiousjim
2020-01-20Fix bug in strace parser (#3720)Ry Dahl
Co-authored-by: @kt3k
2020-01-05Replace libdeno with rusty_v8 (#3556)Ry Dahl
2019-07-28benchmarks: make latency benchmark less noisy (#2689)Bartek Iwańczuk
2019-04-16Add max memory benchmark (#2061)Dmitry Sharshakov
2019-03-24Add benchmark for max latency (#1975)Bernard Lin
2019-02-12Revert "Rewrite tools/format.py in deno (#1528)" (#1752)Ryan Dahl
tools/format.ts is making CI flaky and it's difficult to run right now. Reverting to tools/format.py This reverts commit f19622e7681b7753788137706e535f72c3ebb38e.
2019-01-17Rewrite tools/format.py in deno (#1528)Yoshiya Hinosawa
Note: findFiles and findFilesWalk are borrowed from the previous attempt of @pseudo-su (#1434)
2018-10-16improve benchmark page performance and fix test (#1002)Yoshiya Hinosawa
2018-10-16First pass at http benchmark.Ryan Dahl
2018-10-11Improve tools/unit_tests.py (#958)Ryan Dahl
Checks the output more carefully. The first line of output from js/unit_tests.ts should be something like "running 96 tests" And the last line should be something like "test result: ok. 96 passed; 0 failed; 0 ignored; 0 measured; 36 filtered out" This parses those strings and make sure they align. This will catch silent death bugs.
2018-09-24Add syscall count benchmark for 002_hello.ts (#820)Kevin (Kun) "Kassimo" Qian
* Add syscall count tracking for benchmark * Add fetch_deps thread benchmark * Switch to `strace -c` for syscall parsing * Spawn http_server during benchmark (for fetch) * Rename `benchmarks` to `exec_time_benchmarks` * Update app_test.js