summaryrefslogtreecommitdiff
path: root/tools/util_test.py
AgeCommit message (Collapse)Author
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-11-04chore: remove dead Python code (#8248)Bartek Iwańczuk
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-05-06remove target_test.py (#5112)Ryan Dahl
2020-01-21change copyrights from 2019 to 2020 (#3733)Takashi Idobe
2019-09-11Upgrade pylint (#2917)Ryan Dahl
depot_tools is removing pylint from its distribution so we must maintain our own copy.
2019-09-10feat: Make integration tests rust unit tests (#2884)Bartek Iwańczuk
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2019-07-28benchmarks: make latency benchmark less noisy (#2689)Bartek Iwańczuk
2019-06-03Refactor test infrastructure (#2432)Bartek Iwańczuk
* use subclass of unittest.TestCase for all test cases * allow to run single test file (eg. python tools/integration_tests.py) * test filtering (via --pattern/-p CLI flag) * use common CLI parser for all tests: usage: test.py [-h] [--failfast] [--verbose] [--executable EXECUTABLE] [--release] [--pattern PATTERN] [--build-dir BUILD_DIR] optional arguments: -h, --help show this help message and exit --failfast, -f Stop on first failure --verbose, -v Verbose output --executable EXECUTABLE Use external executable of Deno --release Test against release executable --pattern PATTERN, -p PATTERN Run tests that match provided pattern --build-dir BUILD_DIR Deno build directory * respect NO_COLOR variable
2019-05-30chore: refactor python tests to use unittest (#2414)Andy Hayden
Move every test to a method on DenoTestCase. test.py is a single TestSuite of every TestCase. Add a Spawn context manager for http_server, this is explicitly used where it's needed. Each python test file can now be run independently without needing to manually run http_server. Add --help and consistent flags using argparse for each python test, including --failfast. Use ColorTextTestRunner so that '... ok' is green.
2019-05-27chore: Port Python tests to unittest (#2408)Bartek Iwańczuk
2019-05-08Refactor unit test runner (#2294)Bartek Iwańczuk
Properly discovers the permissions needed for each test.
2019-03-24Add benchmark for max latency (#1975)Bernard Lin
2019-01-21chore: update license lines (#1557)Yoshiya Hinosawa
2018-11-30Use pylint.Ryan Dahl
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-26tools: add shell_quote() utility functionBert Belder
2018-08-21Expose deno.exit() and add test.Ryan Dahl
2018-08-10Support wildcard matching of output in testsKitson Kelly