Skip to content

Commit a8be63d

Browse files
committed
Print timing inside overall test reporting
`Test.DefaultTestSet` natively supports showing time tests took, we don't need to print it separately.
1 parent 9d59c25 commit a8be63d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ParallelTestRunner.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,10 +588,11 @@ function runtests(ARGS; testfilter = Returns(true), RecordType = TestRecord,
588588
end
589589
t1 = now()
590590
elapsed = canonicalize(Dates.CompoundPeriod(t1 - t0))
591-
println("Testing finished in $elapsed")
592591

593592
# construct a testset to render the test results
594593
o_ts = Test.DefaultTestSet("Overall")
594+
o_ts.time_start = Dates.datetime2unix(t0)
595+
o_ts.time_end = Dates.datetime2unix(t1)
595596
with_testset(o_ts) do
596597
completed_tests = Set{String}()
597598
for (testname, res) in results

0 commit comments

Comments
 (0)