Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to this project will be documented in this file.

## [2.5.1] - 2026-01-09
- Catch errors during @testplutonotebooks

## [2.5.0] - 2026-01-08
- run script tests in the directory where script is located
- runic format and other checks
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ExampleJuggler"
uuid = "3bbe58f8-ed81-4c4e-a134-03e85fcf4a1a"
authors = ["Jürgen Fuhrmann <juergen-fuhrmann@web.de>"]
version = "2.5"
version = "2.5.1"

[deps]
ChunkSplitters = "ae650224-84b6-46f8-82ea-d812ca08434e"
Expand Down
10 changes: 6 additions & 4 deletions ext/ExampleJugglerPlutoExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ function testplutonotebook(notebookname::String; pluto_project = Base.active_pro

errored = false
for c in notebook.cells
if occursin("@test", c.code)
@test !c.errored
end
if c.errored
errored = true
@error "Error in $(c.cell_id): $(c.output.body[:msg])\n\n $(c.code)\n"
@error """Error in cell $(c.cell_id): $(c.output.body[:msg])

----------------------------------------------------
$(c.code)
----------------------------------------------------
"""
end
end
ENV["PLUTO_PROJECT"] = nothing
Expand Down
2 changes: 1 addition & 1 deletion src/plutoext.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Keyword arguments:
"""
function testplutonotebooks(example_dir, notebooks; kwargs...)
for notebook in notebooks
testplutonotebook(joinpath(example_dir, notebook); kwargs...)
@test testplutonotebook(joinpath(example_dir, notebook); kwargs...)
end
return
end
Expand Down
Loading