summaryrefslogtreecommitdiff
path: root/tools/repl_test.py
AgeCommit message (Collapse)Author
2020-02-24port tools/repl_test.py to Rust (#4096)João Souto
ref #2988
2020-02-02Remove //tests symlink (#3849)Luka Hartwig
2020-01-02Happy new year! (#3578)Ry Dahl
2019-10-11Ensure DENO_DIR when saving the REPL history (#3106)Nayeem Rahman
2019-08-31Fix REPL '_' assignment, support '_error' (#2845)Nayeem Rahman
2019-08-31Save last execution result in for REPL (#2843)Kevin (Kun) "Kassimo" Qian
2019-08-08Fix repl crash when deno dir doesn't exist (#2727)Daniel Buckmaster
2019-07-12Fix REPL when it receives EOF (#2638)Ryan Dahl
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-03add "deno run" subcommand (#2215)Bartek Iwańczuk
2019-03-18Integrate //core into existing code baseRyan Dahl
This disables a few tests which are broken still: - tests/error_004_missing_module.test - tests/error_005_missing_dynamic_import.test - tests/error_006_import_ext_failure.test - repl_test test_set_timeout - repl_test test_async_op - repl_test test_set_timeout_interlaced - all of permission_prompt_test
2019-02-12Add Deno global namespace (#1748)Kitson Kelly
Resolves #1705 This PR adds the Deno APIs as a global namespace named `Deno`. For backwards compatibility, the ability to `import * from "deno"` is preserved. I have tried to convert every test and internal code the references the module to use the namespace instead, but because I didn't break compatibility I am not sure. On the REPL, `deno` no longer exists, replaced only with `Deno` to align with the regular runtime. The runtime type library includes both the namespace and module. This means it duplicates the whole type information. When we remove the functionality from the runtime, it will be a one line change to the library generator to remove the module definition from the type library. I marked a `TODO` in a couple places where to remove the `"deno"` module, but there are additional places I know I didn't mark.
2019-02-11REPL multiline support with recoverable errors (#1731)Kevin (Kun) "Kassimo" Qian
2019-02-09Support scoped variables, unblock REPL async op, and REPL error colors (#1721)Kevin (Kun) "Kassimo" Qian
2019-01-29Add repl functions "help" and "exit" (#1563)Sergey Golovin
2019-01-21chore: update license lines (#1557)Yoshiya Hinosawa
2019-01-09Fix flaky REPL test (#1491)Maxim Mazurok
Fixes #1490
2018-11-30Use pylint.Ryan Dahl
2018-11-30Fix flaky REPL test.Ryan Dahl
2018-11-29Cleanup setTimeout repl test and alphabetize testsAndy Hayden
2018-11-28REPL unblock event loop AND fix REPL setTimeout fire problemsKevin (Kun) "Kassimo" Qian
2018-11-06Support repl multiline input (#1165)Andy Hayden
2018-11-05Add repl (#998)Andy Hayden
- Running repl from js side. - Add tests for repl behavior. - Handle ctrl-C and ctrl-D.