Skip to content

Commit

Permalink
Remove subpackage tests and add umbrella tests
Browse files Browse the repository at this point in the history
Add JET, Aqua tests
Add tutorial notebook building as a smoke test
  • Loading branch information
ReubenJ committed Nov 14, 2024
1 parent 4a26a8b commit b8947b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 27 deletions.
1 change: 0 additions & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
39 changes: 13 additions & 26 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b8947b7

Please sign in to comment.