diff options
author | Mark Ladyshau <47859603+mrkldshv@users.noreply.github.com> | 2022-07-15 16:29:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-15 10:29:55 -0400 |
commit | ee0c0586b318fe23908a3b9b4311b26d79c5c8a1 (patch) | |
tree | 7e584fdb24e1637a8a55d47a358970888658ab87 /cli/tests/integration/test_tests.rs | |
parent | f9b692e68e97ab6d39ad03988e973279a32cceca (diff) |
feat(cli/test): add `DENO_JOBS` env variable for `test` subcommand (#14929)
Diffstat (limited to 'cli/tests/integration/test_tests.rs')
-rw-r--r-- | cli/tests/integration/test_tests.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/cli/tests/integration/test_tests.rs b/cli/tests/integration/test_tests.rs index 981923359..e1c7700db 100644 --- a/cli/tests/integration/test_tests.rs +++ b/cli/tests/integration/test_tests.rs @@ -62,6 +62,32 @@ itest!(collect { output: "test/collect.out", }); +itest!(jobs_flag { + args: "test test/short-pass.ts --jobs", + exit_code: 0, + output: "test/short-pass.out", +}); + +itest!(jobs_flag_with_numeric_value { + args: "test test/short-pass.ts --jobs=2", + exit_code: 0, + output: "test/short-pass-jobs-flag-with-numeric-value.out", +}); + +itest!(jobs_flag_with_env_variable { + args: "test test/short-pass.ts --jobs", + envs: vec![("DENO_JOBS".to_owned(), "2".to_owned())], + exit_code: 0, + output: "test/short-pass.out", +}); + +itest!(jobs_flag_with_numeric_value_and_env_var { + args: "test test/short-pass.ts --jobs=2", + envs: vec![("DENO_JOBS".to_owned(), "3".to_owned())], + exit_code: 0, + output: "test/short-pass-jobs-flag-with-numeric-value.out", +}); + itest!(load_unload { args: "test test/load_unload.ts", exit_code: 0, |