From bd2b36fef15157b5e22748eab619efa061521c40 Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Sat, 9 May 2026 18:37:55 +0300 Subject: [PATCH] test(docs): add docs topic runner --- test/docs/runtests.jl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/docs/runtests.jl diff --git a/test/docs/runtests.jl b/test/docs/runtests.jl new file mode 100644 index 0000000..79f9f41 --- /dev/null +++ b/test/docs/runtests.jl @@ -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")