Skip to content

Commit 4d49d6d

Browse files
Always report total number of tests being run (#113)
* Always report # tests being run. * Fix test * Update src/ParallelTestRunner.jl Co-authored-by: Mosè Giordano <765740+giordano@users.noreply.github.com> * Adapt test --------- Co-authored-by: Mosè Giordano <765740+giordano@users.noreply.github.com>
1 parent daf7769 commit 4d49d6d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/ParallelTestRunner.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ function runtests(mod::Module, args::ParsedArgs;
789789
# determine parallelism
790790
jobs = something(args.jobs, default_njobs())
791791
jobs = clamp(jobs, 1, length(tests))
792-
println(stdout, "Running $jobs tests in parallel. If this is too many, specify the `--jobs=N` argument to the tests, or set the `JULIA_CPU_THREADS` environment variable.")
792+
println(stdout, "Running $(length(tests)) tests using $jobs parallel jobs. If this is too many concurrent jobs, specify the `--jobs=N` argument to the tests, or set the `JULIA_CPU_THREADS` environment variable.")
793793
workers = fill(nothing, jobs)
794794

795795
t0 = time()

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ end
399399
njobs = 1
400400
runtests(ParallelTestRunner, ["--jobs=$(njobs)"]; testsuite, stdout=ioc, stderr=ioc)
401401
str = String(take!(io))
402-
@test contains(str, "Running $(njobs) tests in parallel")
402+
@test contains(str, "Running $(length(testsuite)) tests using $(njobs) parallel jobs")
403403
@test ParallelTestRunner.ID_COUNTER[] == old_id_counter + njobs
404404
end
405405

0 commit comments

Comments
 (0)