mirror of
https://github.com/denoland/deno.git
synced 2025-12-23 08:48:24 +00:00
Some checks are pending
ci / pre-build (push) Waiting to run
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / build libs (push) Blocked by required conditions
ci / publish canary (push) Blocked by required conditions
1. Marks all integration tests as flaky on the CI and outputs when they're flaky so we can track it. 2. Uses a custom test runner for integration tests, giving us full control over how they're run. 3. Runs watcher tests sequentially for more stability.
43 lines
1.4 KiB
Rust
43 lines
1.4 KiB
Rust
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
|
|
use test_util as util;
|
|
use test_util::test;
|
|
use util::assert_contains;
|
|
|
|
#[test]
|
|
fn help_output() {
|
|
let output = util::deno_cmd()
|
|
.current_dir(util::testdata_path())
|
|
.arg("--help")
|
|
.run();
|
|
|
|
let stdout = output.combined_output();
|
|
let subcommand_descriptions = vec![
|
|
"Run a JavaScript or TypeScript program, or a task",
|
|
"Run a server",
|
|
"Run a task defined in the configuration file",
|
|
"Start an interactive Read-Eval-Print Loop (REPL) for Deno",
|
|
"Evaluate a script from the command line",
|
|
"Add dependencies",
|
|
"Installs dependencies either in the local project or globally to a bin directory",
|
|
"Uninstalls a dependency or an executable script in the installation root's bin directory",
|
|
"Run benchmarks",
|
|
"Type-check the dependencies",
|
|
"Compile the script into a self contained executable",
|
|
"Print coverage reports",
|
|
"Generate and show documentation for a module or built-ins",
|
|
"Format source files",
|
|
"Show info about cache or info related to source file",
|
|
"Deno kernel for Jupyter notebooks",
|
|
"Lint source files",
|
|
"Initialize a new project",
|
|
"Run tests",
|
|
"Publish the current working directory's package or workspace",
|
|
#[cfg(feature = "upgrade")]
|
|
"Upgrade deno executable to given version",
|
|
];
|
|
|
|
for description in subcommand_descriptions {
|
|
assert_contains!(stdout, description);
|
|
}
|
|
}
|