diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-07-20 17:36:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-20 17:36:54 -0400 |
commit | 26cea0e2ca3aa036d1e0fe4869f23bd6c0b564fb (patch) | |
tree | f804df882cedb1c1b0bd55816088ee8239a521c8 /cli/tests/integration/test_tests.rs | |
parent | 5f5bbd597ad3454469b3e51a80cd7cb9be39c04d (diff) |
feat(test): add `--parallel` flag, soft deprecate `--jobs` (#15259)
Co-authored-by: mrkldshv <markladyshev@gmail.com>
Diffstat (limited to 'cli/tests/integration/test_tests.rs')
-rw-r--r-- | cli/tests/integration/test_tests.rs | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/cli/tests/integration/test_tests.rs b/cli/tests/integration/test_tests.rs index 32be3c127..3dd626909 100644 --- a/cli/tests/integration/test_tests.rs +++ b/cli/tests/integration/test_tests.rs @@ -80,30 +80,29 @@ itest!(test_with_malformed_config { output: "test/collect_with_malformed_config.out", }); -itest!(jobs_flag { - args: "test test/short-pass.ts --jobs", +itest!(parallel_flag { + args: "test test/short-pass.ts --parallel", exit_code: 0, output: "test/short-pass.out", }); -itest!(jobs_flag_with_numeric_value { - args: "test test/short-pass.ts --jobs=2", +itest!(parallel_flag_with_env_variable { + args: "test test/short-pass.ts --parallel", + envs: vec![("DENO_JOBS".to_owned(), "2".to_owned())], exit_code: 0, - output: "test/short-pass-jobs-flag-with-numeric-value.out", + output: "test/short-pass.out", }); -itest!(jobs_flag_with_env_variable { +itest!(jobs_flag { args: "test test/short-pass.ts --jobs", - envs: vec![("DENO_JOBS".to_owned(), "2".to_owned())], exit_code: 0, - output: "test/short-pass.out", + output: "test/short-pass-jobs-flag-warning.out", }); -itest!(jobs_flag_with_numeric_value_and_env_var { +itest!(jobs_flag_with_numeric_value { 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", + output: "test/short-pass-jobs-flag-warning.out", }); itest!(load_unload { |