diff --git a/test/Project.toml b/test/Project.toml index a15268b..52ed959 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -7,7 +7,6 @@ HerbGrammar = "4ef9e186-2fe5-4b24-8de7-9f7291f24af7" HerbInterpret = "5bbddadd-02c5-4713-84b8-97364418cca7" HerbSearch = "3008d8e8-f9aa-438a-92ed-26e9c7b4829f" HerbSpecification = "6d54aada-062f-46d8-85cf-a1ceaf058a06" -JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" PlutoStaticHTML = "359b1769-a58e-495b-9770-312e911026ad" PlutoUI = "7f904dfe-b85e-4ff6-b463-dae2292396a8" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/test/runtests.jl b/test/runtests.jl index 133fd25..2109915 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,29 +1,16 @@ -module HerbTest - -using HerbConstraints -using HerbCore -using HerbInterpret -using HerbGrammar -using HerbSearch -using HerbSpecification - +using Aqua +using Herb using Test -using Pkg +include(joinpath(@__DIR__, "..", "docs", "build_notebooks.jl")) -@testset verbose=false "Herb" begin - @test 1==1 # dummy test - println("\n--- HerbConstraints tests ---") - Pkg.test("HerbConstraints") - println("\n--- HerbCore tests ---") - Pkg.test("HerbCore") - println("\n--- HerbInterpret tests ---") - Pkg.test("HerbInterpret") - println("\n--- HerbGrammar tests ---") - Pkg.test("HerbGrammar") - println("\n--- HerbSearch tests ---") - Pkg.test("HerbSearch") - println("\n--- HerbSpecification tests ---") - Pkg.test("HerbSpecification") -end +@testset "Herb" begin + @testset "Aqua.jl" begin + Aqua.test_all(Herb) + end -end # module + @testset "Build notebooks" begin + tutorials_dir = joinpath(dirname(@__DIR__), "docs", "src", "tutorials") + # Smoke test to make sure building the notebooks doesn't error + @test build(tutorials_dir) isa Any + end +end