1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-03 17:08:35 -05:00
denoland-deno/cli/tests
Kitson Kelly d9ff4eccb5 Async compiler processing (#3043)
Basically this does pre-processing of TypeScript files and gathers all the
dependencies asynchronously. Only then after all the dependencies are gathered,
does it do a compile, which at that point all the dependencies are cached in
memory in the compiler, so with the exception of the hard coded assets, there
are no ops during the compilation.

Because op_fetch_source_files is now handled asynchronously in the runtime, we
can eliminate the tokio_util::block_on() which was causing the increase in
threads. Benchmarking on my machine has shown about a 5% improvement in speed
when dealing with compiling TypeScript. Still a long way to go, but an
improvement.

In theory the module name resolution and the fetching of the source files could
be broken out as two different ops. This would prevent situations of sending the
full source file all the time when actually the module is the same module
referenced by multiple modules, but that could be done subsequently to this.
2019-10-03 07:23:29 -04:00
..
034_onload feat: window.onunload (#3023) 2019-10-02 11:32:51 -04:00
039_worker_deno_ns Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
importmaps Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
subdir Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
type_definitions Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
util Remove test.py, use cargo test as test frontend (#2967) 2019-09-19 14:48:05 -04:00
001_hello.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
001_hello.js.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
002_hello.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
002_hello.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
003_relative_import.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
003_relative_import.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
004_set_timeout.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
004_set_timeout.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
005_more_imports.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
005_more_imports.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
006_url_imports.ts Remove test.py, use cargo test as test frontend (#2967) 2019-09-19 14:48:05 -04:00
006_url_imports.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
012_async.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
012_async.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
013_dynamic_import.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
013_dynamic_import.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
014_duplicate_import.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
014_duplicate_import.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
015_duplicate_parallel_import.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
015_duplicate_parallel_import.js.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
016_double_await.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
016_double_await.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
017_import_redirect.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
017_import_redirect.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
018_async_catch.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
018_async_catch.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
019_media_types.ts Remove test.py, use cargo test as test frontend (#2967) 2019-09-19 14:48:05 -04:00
019_media_types.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
020_json_modules.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
020_json_modules.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
021_mjs_modules.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
021_mjs_modules.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
022_info_flag_script.out Remove test.py, use cargo test as test frontend (#2967) 2019-09-19 14:48:05 -04:00
023_no_ext_with_headers Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
023_no_ext_with_headers.headers.json Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
023_no_ext_with_headers.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
024_import_no_ext_with_headers.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
024_import_no_ext_with_headers.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
025_hrtime.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
025_hrtime.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
025_reload_js_type_error.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
025_reload_js_type_error.js.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
026_redirect_javascript.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
026_redirect_javascript.js.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
026_workers.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
026_workers.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
027_redirect_typescript.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
027_redirect_typescript.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
028_args.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
028_args.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
029_eval.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
030_xeval.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
031_xeval_replvar.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
032_xeval_delim.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
033_import_map.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
034_onload.out feat: window.onunload (#3023) 2019-10-02 11:32:51 -04:00
035_no_fetch_flag.out Remove test.py, use cargo test as test frontend (#2967) 2019-09-19 14:48:05 -04:00
036_import_map_fetch.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
038_checkjs.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
038_checkjs.js.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
038_checkjs.tsconfig.json Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
039_worker_deno_ns.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
039_worker_deno_ns.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
040_worker_blob.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
040_worker_blob.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
041_dyn_import_eval.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
041_info_flag.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
042_dyn_import_evalcontext.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
042_dyn_import_evalcontext.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
043_xeval_delim2.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
044_bad_resource.ts fix: run missing integration tests (#2997) 2019-09-24 10:46:57 -04:00
044_bad_resource.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
045_proxy_client.ts test: add HTTP_PROXY tests (#2977) 2019-09-24 18:52:01 -04:00
045_proxy_test.ts test: add HTTP_PROXY tests (#2977) 2019-09-24 18:52:01 -04:00
045_proxy_test.ts.out test: add HTTP_PROXY tests (#2977) 2019-09-24 18:52:01 -04:00
046_jsx_test.tsx feat: JSX Support (#3038) 2019-10-02 10:46:36 -04:00
046_jsx_test.tsx.out feat: JSX Support (#3038) 2019-10-02 10:46:36 -04:00
047_jsx_test.jsx feat: JSX Support (#3038) 2019-10-02 10:46:36 -04:00
047_jsx_test.jsx.out feat: JSX Support (#3038) 2019-10-02 10:46:36 -04:00
async_error.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
async_error.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
badly_formatted.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
badly_formatted_fixed.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
cat.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
circular1.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
circular1.js.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
circular2.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
config.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
config.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
config.tsconfig.json Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
echo_server.ts Use 0.0.0.0 for servers in benchmarks and tests (#3010) 2019-09-30 12:35:48 -04:00
error_001.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_001.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_002.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_002.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_003_typescript.ts Update to TypeScript 3.6.3 (#2969) 2019-09-17 12:24:44 -04:00
error_003_typescript.ts.out Update to TypeScript 3.6.3 (#2969) 2019-09-17 12:24:44 -04:00
error_004_missing_module.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_004_missing_module.ts.out Async compiler processing (#3043) 2019-10-03 07:23:29 -04:00
error_005_missing_dynamic_import.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_005_missing_dynamic_import.ts.out Async compiler processing (#3043) 2019-10-03 07:23:29 -04:00
error_006_import_ext_failure.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_006_import_ext_failure.ts.out Async compiler processing (#3043) 2019-10-03 07:23:29 -04:00
error_007_any.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_007_any.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_008_checkjs.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_008_checkjs.js.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_009_missing_js_module.disabled Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_009_missing_js_module.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_009_missing_js_module.js.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_010_nonexistent_arg.disabled Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_010_nonexistent_arg.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_011_bad_module_specifier.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_011_bad_module_specifier.ts.out Async compiler processing (#3043) 2019-10-03 07:23:29 -04:00
error_012_bad_dynamic_import_specifier.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_012_bad_dynamic_import_specifier.ts.out Async compiler processing (#3043) 2019-10-03 07:23:29 -04:00
error_013_missing_script.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_014_catch_dynamic_import_error.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_014_catch_dynamic_import_error.js.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_015_dynamic_import_permissions.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_015_dynamic_import_permissions.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_016_dynamic_import_permissions2.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_016_dynamic_import_permissions2.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_stack.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_stack.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_syntax.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_syntax.js.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_type_definitions.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
error_type_definitions.ts.out Async compiler processing (#3043) 2019-10-03 07:23:29 -04:00
error_worker_dynamic.ts Handle uncaught worker errors without panicking (#3019) 2019-09-25 10:46:58 -04:00
error_worker_dynamic.ts.out Handle uncaught worker errors without panicking (#3019) 2019-09-25 10:46:58 -04:00
esm_imports_a.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
esm_imports_b.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
exec_path.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
exit_error42.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
exit_error42.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
fetch_deps.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
hello.txt Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
https_import.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
https_import.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
if_main.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
if_main.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
import_meta.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
import_meta.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
import_meta2.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
integration_tests.rs feat: JSX Support (#3038) 2019-10-02 10:46:36 -04:00
is_tty.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
no_color.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
README.md Remove test.py, use cargo test as test frontend (#2967) 2019-09-19 14:48:05 -04:00
seed_random.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
seed_random.js.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
top_level_await.js Upgrade V8 for top-level-await (#3015) 2019-09-24 18:37:04 -04:00
top_level_await.out Upgrade V8 for top-level-await (#3015) 2019-09-24 18:37:04 -04:00
top_level_await.ts Support top-level-await in TypeScript (#3024) 2019-09-30 12:38:23 -04:00
tty_tests.rs Remove test.py, use cargo test as test frontend (#2967) 2019-09-19 14:48:05 -04:00
type_definitions.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
type_definitions.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
types.out Make window compatible with ts 3.6 (#2984) 2019-09-19 11:40:52 -04:00
unbuffered_stderr.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
unbuffered_stderr.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
unbuffered_stdout.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
unbuffered_stdout.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
v8_flags.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
v8_flags.js.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
v8_help.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
version.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
wasm.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
wasm.ts.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
wasm_async.js Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
wasm_async.out Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
workers_round_robin_bench.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
workers_startup_bench.ts Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00

Integration Tests

This path contains integration tests. See integration_tests.rs for the index.

TODO(ry) Currently //tests is a symlink to //cli/tests, to simplify transition. In the future the symlink should be removed when all the many references have been updated to the new path.