summaryrefslogtreecommitdiff
path: root/tools/unit_tests.py
AgeCommit message (Collapse)Author
2019-09-19Remove test.py, use cargo test as test frontend (#2967)Ryan Dahl
Fixes #2933
2019-08-03Enforce env permission on homeDir() and execPath (#2714)Kevin (Kun) "Kassimo" Qian
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-08Refactor unit test runner (#2294)Bartek Iwańczuk
Properly discovers the permissions needed for each test.
2019-05-03add "deno run" subcommand (#2215)Bartek Iwańczuk
2019-05-02Re-enable networking unit tests (#2268)Ryan Dahl
The following tests were commented out in order to get this to go green : - bodyMultipartFormData - bodyURLEncodedFormData - fetchRequestInitStringBody - netConcurrentAccept - netListenAsyncIterator
2019-04-20fix typo in permissions explanation (#2162)Jonathon Orsi
2019-04-08Allow high precision performance.now() (#1977)Vincent LE GOFF
2019-04-07Fix unit_tests.py (#2065)Ryan Dahl
They were silently broken in 780e72 due to flag reordering. This commit also includes a new assert that would avoid that kind of failure in the future.
2019-04-07Refactor CLI flag parsing (#2025)Bartek Iwańczuk
2019-03-28Merge the --recompile and --reload flags (#2003)Ryan Dahl
2019-02-12Decouple ts_library_builder from std/testing (#1749)Ryan Dahl
2019-02-11fix: improve formatting (#1732)Yoshiya Hinosawa
2019-02-08Add --allow-read (#1689)Dmitry Sharshakov
Co-authored-by: Greg Altman <g.s.altman@gmail.com>
2019-01-21chore: update license lines (#1557)Yoshiya Hinosawa
2018-11-30Use pylint.Ryan Dahl
2018-11-16First pass at running subprocesses (#1156)Bert Belder
2018-11-08build: Use target/ instead of out/ (#1153)Ryan Dahl
2018-10-19Add missing copyrights (#1024)ztplz
2018-10-16FormatRyan Dahl
2018-10-11Add support for --typesKitson Kelly
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-05Add --reload to JS unit tests.Ryan Dahl
Fixes #677
2018-09-03Format.Ryan Dahl
2018-08-31Implemented deno.env and refactored flags.rsAaron Power
2018-08-27Add ability to unit test by permissions.Ryan Dahl