Skip to content

Commit

Permalink
catch errors not seen locally to understand CI failures better
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel committed Oct 14, 2024
1 parent ce3d265 commit 24a7eff
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/testsets/random_seed.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ include("../utilities/prelude.jl")
QuartoNotebookRunner.run!(server, "notebook.qmd"; showprogress = false)
end

_output(cell) = only(cell.outputs).data["text/plain"]
function _output(cell)
try
only(cell.outputs).data["text/plain"]
catch e
@error "extracting outputs failed"
display(cell)
rethrow(e)
end
end

@test tryparse(Float64, _output(jsons[1].cells[2])) !== nothing
@test tryparse(Float64, _output(jsons[1].cells[4])) !== nothing
Expand Down

0 comments on commit 24a7eff

Please sign in to comment.