mirror of
https://github.com/denoland/deno.git
synced 2024-11-23 15:16:54 -05:00
d6452b3946
Before this PR, we didn't have any integration tests set up for the `jupyter` subcommand. This PR adds a basic jupyter client and helpers for writing integration tests for the jupyter kernel. A lot of the code here is boilerplate, mainly around the message format for jupyter. This also adds a few basic integration tests, most notably for requesting execution of a snippet of code and getting the correct results.
75 lines
1.6 KiB
Rust
75 lines
1.6 KiB
Rust
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
// These files have `_tests.rs` suffix to make it easier to tell which file is
|
|
// the test (ex. `lint_tests.rs`) and which is the implementation (ex. `lint.rs`)
|
|
// when both are open, especially for two tabs in VS Code
|
|
|
|
#[path = "bench_tests.rs"]
|
|
mod bench;
|
|
#[path = "bundle_tests.rs"]
|
|
mod bundle;
|
|
#[path = "cache_tests.rs"]
|
|
mod cache;
|
|
#[path = "cert_tests.rs"]
|
|
mod cert;
|
|
#[path = "check_tests.rs"]
|
|
mod check;
|
|
#[path = "compile_tests.rs"]
|
|
mod compile;
|
|
#[path = "coverage_tests.rs"]
|
|
mod coverage;
|
|
#[path = "doc_tests.rs"]
|
|
mod doc;
|
|
#[path = "eval_tests.rs"]
|
|
mod eval;
|
|
#[path = "flags_tests.rs"]
|
|
mod flags;
|
|
#[path = "fmt_tests.rs"]
|
|
mod fmt;
|
|
#[path = "info_tests.rs"]
|
|
mod info;
|
|
#[path = "init_tests.rs"]
|
|
mod init;
|
|
#[path = "inspector_tests.rs"]
|
|
mod inspector;
|
|
#[path = "install_tests.rs"]
|
|
mod install;
|
|
#[path = "js_unit_tests.rs"]
|
|
mod js_unit_tests;
|
|
#[path = "jsr_tests.rs"]
|
|
mod jsr;
|
|
#[path = "jupyter_tests.rs"]
|
|
mod jupyter;
|
|
#[path = "lint_tests.rs"]
|
|
mod lint;
|
|
#[path = "lsp_tests.rs"]
|
|
mod lsp;
|
|
#[path = "node_compat_tests.rs"]
|
|
mod node_compat_tests;
|
|
#[path = "node_unit_tests.rs"]
|
|
mod node_unit_tests;
|
|
#[path = "npm_tests.rs"]
|
|
mod npm;
|
|
#[path = "pm_tests.rs"]
|
|
mod pm;
|
|
#[path = "publish_tests.rs"]
|
|
mod publish;
|
|
|
|
#[path = "repl_tests.rs"]
|
|
mod repl;
|
|
#[path = "run_tests.rs"]
|
|
mod run;
|
|
#[path = "shared_library_tests.rs"]
|
|
mod shared_library_tests;
|
|
#[path = "task_tests.rs"]
|
|
mod task;
|
|
#[path = "test_tests.rs"]
|
|
mod test;
|
|
#[path = "upgrade_tests.rs"]
|
|
mod upgrade;
|
|
#[path = "vendor_tests.rs"]
|
|
mod vendor;
|
|
#[path = "watcher_tests.rs"]
|
|
mod watcher;
|
|
#[path = "worker_tests.rs"]
|
|
mod worker;
|