I found this useful for ReTestItems (e.g. https://github.com/JuliaTesting/ReTestItems.jl/blob/main/test/_integration_test_tools.jl#59), to tests the specifics of what happened when running a testset with multiple tests (similar to #2)
for failures and errors, this is just calling length on #2
but for passes we need to track that separately, since DefaultTestSet doesn't store Pass results (just a count of pass)