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
4 changes: 4 additions & 0 deletions test/qa/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
[deps]
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
RootedTrees = "47965b36-3f3e-11e9-0dcf-4570dfd42a8c"
SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
Plots = "1.39"
SciMLTesting = "2.4"
Test = "1"
julia = "1.10"
25 changes: 24 additions & 1 deletion test/qa/qa.jl
Original file line number Diff line number Diff line change
@@ -1,2 +1,25 @@
using SciMLTesting, RootedTrees
run_qa(RootedTrees)
using Test

# ExplicitImports only sees an extension module once its trigger package is loaded,
# so `using Plots` is what makes `PlotsExt` part of the QA scan.
using Plots

# ExplicitImports silently skips an extension that fails to load, so assert the
# extension modules actually exist rather than trusting a green run_qa.
@testset "Extensions loaded" begin
@test Base.get_extension(RootedTrees, :PlotsExt) !== nothing
end

run_qa(
RootedTrees;
ei_kwargs = (;
all_qualified_accesses_are_public = (;
# RootedTrees: `_distinguishable_colors` is RootedTrees' own internal hook,
# defined precisely so that `PlotsExt` can fill it in. ExplicitImports does
# not treat an extension as internal to its parent package, so the access
# has to be ignored here.
ignore = (:_distinguishable_colors,),
),
),
)
Loading