diff options
author | Marvin Hagemeister <marvin@deno.com> | 2023-09-06 14:54:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-06 14:54:21 +0200 |
commit | e0a269c23af2bccfa71d7a22506a348574be138a (patch) | |
tree | 7d1f2fb11fb8c13eedb44ef1b2bbf420caea962b /cli/tools/test/mod.rs | |
parent | 147c845c95bfd55548d5b5b56d70f0a616410e0d (diff) |
fix: don't show filtered test suites as running (#20385)
Diffstat (limited to 'cli/tools/test/mod.rs')
-rw-r--r-- | cli/tools/test/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tools/test/mod.rs b/cli/tools/test/mod.rs index 296d306e2..7ab74ff7c 100644 --- a/cli/tools/test/mod.rs +++ b/cli/tools/test/mod.rs @@ -343,6 +343,7 @@ struct TestSpecifiersOptions { concurrent_jobs: NonZeroUsize, fail_fast: Option<NonZeroUsize>, log_level: Option<log::Level>, + filter: bool, specifier: TestSpecifierOptions, reporter: TestReporterConfig, junit_path: Option<String>, @@ -384,6 +385,7 @@ fn get_test_reporter(options: &TestSpecifiersOptions) -> Box<dyn TestReporter> { TestReporterConfig::Pretty => Box::new(PrettyTestReporter::new( parallel, options.log_level != Some(Level::Error), + options.filter, )), TestReporterConfig::Junit => { Box::new(JunitTestReporter::new("-".to_string())) @@ -1144,6 +1146,7 @@ pub async fn run_tests( concurrent_jobs: test_options.concurrent_jobs, fail_fast: test_options.fail_fast, log_level, + filter: test_options.filter.is_some(), reporter: test_options.reporter, junit_path: test_options.junit_path, specifier: TestSpecifierOptions { @@ -1276,6 +1279,7 @@ pub async fn run_tests_with_watch( concurrent_jobs: test_options.concurrent_jobs, fail_fast: test_options.fail_fast, log_level, + filter: test_options.filter.is_some(), reporter: test_options.reporter, junit_path: test_options.junit_path, specifier: TestSpecifierOptions { |