Skip to content

Commit

Permalink
feat(test): add doctest fixing script
Browse files Browse the repository at this point in the history
Add new script to automatically fix doctests with proper package activation
and logging configuration. Includes DocMeta setup for test environment.
  • Loading branch information
kunzaatko committed Jan 2, 2025
1 parent d8b1c77 commit 0ee3627
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/fix_doctests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using Pkg
Pkg.activate(@__DIR__)
using MakieMaestro
# TODO: Warn on uncommitted changes... The workflow should be to commit, run, and commit --amend <19-12-24>
using Documenter

# NOTE: When updating, must update also in `docs/make.jl` & 'test/runtests.jl'<18-12-24>
DocMeta.setdocmeta!(
MakieMaestro, :DocTestSetup, :(using MakieMaestro;
using Logging; # NOTE: This does not need to be in the `make.jl` of docs. We want `@warn ` to function there <19-12-24>
Logging.disable_logging(Logging.Warn)); recursive=true
)
doctest(MakieMaestro; fix=true)

0 comments on commit 0ee3627

Please sign in to comment.