Skip to content

Commit 0a70cef

Browse files
More debug logs
1 parent c9af808 commit 0a70cef

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

src/ReTestItems.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,14 +456,17 @@ function _runtests_in_current_env(
456456
print_completion_summary(testitems; failedfast=(cfg.failfast && is_cancelled(testitems)))
457457
record_results!(testitems)
458458
cfg.report && write_junit_file(proj_name, dirname(projectfile), testitems.graph.junit)
459+
@debugv 1 "Calling Test.finish(testitems)"
459460
Test.finish(testitems) # print summary of total passes/failures/errors
460461
finally
461462
Test.TESTSET_PRINT_ENABLE[] = true
462-
# Cleanup test setup logs
463+
@debugv 1 "Cleaning up test setup logs"
463464
foreach(Iterators.filter(endswith(".log"), readdir(RETESTITEMS_TEMP_FOLDER[], join=true))) do logfile
464465
rm(logfile; force=true) # `force` to ignore error if file already cleaned up
465466
end
467+
@debugv 1 "Done cleaning up test setup logs"
466468
end
469+
@debugv 1 "DONE"
467470
return nothing
468471
end
469472

src/junit_xml.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ function write_junit_file(path::AbstractString, junit::Union{JUnitTestSuites,JUn
191191
open(path, "w") do io
192192
write_junit_file(io, junit)
193193
end
194+
@debugv 1 "Done writing JUnit XML file to $(repr(path))"
194195
return nothing
195196
end
196197

@@ -201,6 +202,7 @@ function write_junit_file(io::IO, junit::Union{JUnitTestSuites,JUnitTestSuite})
201202
end
202203

203204
function write_junit_xml(io, junit::JUnitTestSuites)
205+
@debugv 2 "Writing JUnit XML for testsuites $(junit.name)"
204206
write(io, "\n<testsuites")
205207
write_counts(io, junit.counts)
206208
write(io, ">")
@@ -212,6 +214,7 @@ function write_junit_xml(io, junit::JUnitTestSuites)
212214
end
213215

214216
function write_junit_xml(io, ts::JUnitTestSuite)
217+
@debugv 2 "Writing JUnit XML for testsuite $(ts.name)"
215218
write(io, "\n<testsuite name=", xml_markup(ts.name))
216219
write_counts(io, ts.counts)
217220
write(io, ">")
@@ -258,6 +261,7 @@ function write_dd_tags(io, tc::JUnitTestCase)
258261
end
259262

260263
function write_junit_xml(io, tc::JUnitTestCase)
264+
@debugv 2 "Writing JUnit XML for testcase $(tc.name)"
261265
write(io, "\n\t<testcase name=", xml_markup(tc.name))
262266
write_counts(io, tc.counts)
263267
write(io, ">")

src/testcontext.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,12 @@ is_cancelled(t::TestItems) = @atomic t.cancelled
108108
###
109109

110110
function record_results!(ti::TestItems)
111+
@debugv 1 "Recording testitem results"
111112
foreach(ti.graph.children) do child
112113
record_results!(ti.graph, child)
113114
end
115+
@debugv 1 "Done recording testitem results"
116+
return ti
114117
end
115118

116119
function record_results!(dir::DirNode, child_dir::DirNode)

0 commit comments

Comments
 (0)