-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from Herb-AI/test/remove-subpackage-tests
Remove subpackage tests
- Loading branch information
Showing
5 changed files
with
42 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using PlutoStaticHTML | ||
|
||
function build(tutorials_dir) | ||
@info "Building notebooks in $tutorials_dir" | ||
use_distributed = false | ||
output_format = documenter_output | ||
bopts = BuildOptions(tutorials_dir; use_distributed, output_format) | ||
build_notebooks(bopts) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[deps] | ||
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" | ||
Herb = "c09c6b7f-4f63-49de-90d9-97a3563c0f4a" | ||
HerbConstraints = "1fa96474-3206-4513-b4fa-23913f296dfc" | ||
HerbCore = "2b23ba43-8213-43cb-b5ea-38c12b45bd45" | ||
HerbGrammar = "4ef9e186-2fe5-4b24-8de7-9f7291f24af7" | ||
HerbInterpret = "5bbddadd-02c5-4713-84b8-97364418cca7" | ||
HerbSearch = "3008d8e8-f9aa-438a-92ed-26e9c7b4829f" | ||
HerbSpecification = "6d54aada-062f-46d8-85cf-a1ceaf058a06" | ||
PlutoStaticHTML = "359b1769-a58e-495b-9770-312e911026ad" | ||
PlutoUI = "7f904dfe-b85e-4ff6-b463-dae2292396a8" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |