test(docs): add docs topic runner

This commit is contained in:
Jukka Aho
2026-05-09 18:37:55 +03:00
parent 6b9bef7940
commit bd2b36fef1
+16
View File
@@ -0,0 +1,16 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md
using Test
const SNIPPET = joinpath(@__DIR__, "..", "..", "docs", "src", "snippets", "minimal_elasticity_quickstart.jl")
@testset "Documentation snippets" begin
@test isfile(SNIPPET)
include(SNIPPET)
r = minimal_elasticity_quickstart()
@test r.ndofs == 375
@test r.nnz_stiffness == 19773
end
include("readme_example.jl")