JuliaTesting/TestReports.jl

Pass information is now available! ๐ŸŽ†

mmiller-max opened this issue ยท 2 comments

As of 1.7:

julia> a = 1
1

julia> @test a == 1
Test Passed
  Expression: a == 1
   Evaluated: 1 == 1

So we can now include this information in test reports.

Any plan/guidance to implement this? Would be lovely to have.

Thanks for the reminder, I might be able to take a look at this later in the week. If you'd like to give it a go, this method needs updating (for 1.7 and later) to use the information in the Pass object

function to_xml(res::Pass)
x_testcase = testcase_xml("pass (info lost)", "_testcase_id_", [])
x_testcase, 1, 0, 0 # Increment number of tests by 1
end