deno test [files...] [script_arg...]

Run tests

Arguments

NameDescription
filesfilepaths
script_argfilepaths

Options

NameDescription
--import-map [import-map]Load import map file
-c, --config [config]Specify the configuration file
--no-check [no-check...]Skip type-checking modules
--check [check...]Type-check modules
-r, --reload [reload...]Reload source code cache (recompile TypeScript)
--lock [lock]Check the specified lock file
--cert [cert]Load certificate authority from PEM encoded file
--allow-read [allow-read...]Allow file system read access
--allow-write [allow-write...]Allow file system write access
--allow-net [allow-net...]Allow network access
--unsafely-ignore-certificate-errors [unsafely-ignore-certificate-errors...]DANGER: Disables verification of TLS certificates
--allow-env [allow-env...]Allow environment access
--allow-run [allow-run...]Allow running subprocesses
--allow-ffi [allow-ffi...]Allow loading dynamic libraries
--inspect [inspect...]Activate inspector on host:port (default: 127.0.0.1:9229)
--inspect-brk [inspect-brk...]Activate inspector on host:port and break at start of user script
--location [location]Value of 'globalThis.location' used by some web APIs
--v8-flags [v8-flags]Set V8 command line options
--seed [seed]Set the random number generator seed
--ignore [ignore]Ignore files
--fail-fast [fail-fast...]Stop after N errors. Defaults to stopping after first failure
--filter [filter]Run tests with this string or pattern in the test name
--shuffle [shuffle...](UNSTABLE): Shuffle the order in which the tests are run
--coverage [coverage]UNSTABLE: Collect coverage profile data into DIR
-j, --jobs [jobs...]Deprecated: Number of parallel workers, defaults to number of available CPUs when no value is provided. Defaults to 1 when the option is not present
-L, --log-level [log-level]Set log level
--no-remoteDo not resolve remote modules
--no-configDisable automatic loading of the configuration file
--lock-writeWrite lock file (use with --lock)
--allow-hrtimeAllow high resolution time measurement
-A, --allow-allAllow all permissions
--promptDeprecated: Fallback to prompt if required permission wasn't passed
--no-promptAlways throw if required permission wasn't passed
--cached-onlyRequire that remote dependencies are already cached
--enable-testing-features-do-not-useINTERNAL: Enable internal features used during integration testing
--compatUNSTABLE: Node compatibility mode
--no-runCache test modules, but don't run tests
--trace-opsEnable tracing of async ops. Useful when debugging leaking ops in test, but impacts test execution time
--docUNSTABLE: type-check code blocks
--allow-noneDon't return error code if no test files are found
--parallelRun test modules in parallel. Parallelism defaults to the number of available CPUs or the value in the DENO_JOBS environment variable
--watchWatch for file changes and restart automatically
--no-clear-screenDo not clear terminal screen when under watch mode
-h, --helpPrint help information
--unstableEnable unstable features and APIs
-q, --quietSuppress diagnostic output