Skip to content

Commit b8ad4aa

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 b8ad4aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ParallelTestRunner.jl

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

593591
# construct a testset to render the test results
594592
o_ts = Test.DefaultTestSet("Overall")
593+
o_ts.time_start = Dates.datetime2unix(t0)
594+
o_ts.time_end = Dates.datetime2unix(t1)
595595
with_testset(o_ts) do
596596
completed_tests = Set{String}()
597597
for (testname, res) in results

0 commit comments

Comments
 (0)