-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathruntests.jl
48 lines (37 loc) · 1.25 KB
/
runtests.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using Test, Aqua
using ExampleJuggler
if isdefined(Docs,:undocumented_names) # >=1.11
@testset "undocumented names" begin
@test isempty(Docs.undocumented_names(ExampleJuggler))
end
end
@testset "Aqua" begin
Aqua.test_ambiguities(ExampleJuggler)
Aqua.test_unbound_args(ExampleJuggler)
Aqua.test_undefined_exports(ExampleJuggler)
Aqua.test_project_extras(ExampleJuggler)
Aqua.test_stale_deps(ExampleJuggler,ignore=[:Requires])
Aqua.test_deps_compat(ExampleJuggler)
Aqua.test_piracies(ExampleJuggler)
Aqua.test_persistent_tasks(ExampleJuggler)
end
ExampleJuggler.verbose!(true)
example_dir = joinpath(@__DIR__, "..", "examples")
modules = ["ExampleModule.jl"]
notebooks = ["PlutoTemplate.jl", "ExamplePluto.jl"]
scripts = ["ExampleScript.jl"]
# This kind of test needs `import Pluto`
# and has been temporarily disabled due to /~https://github.com/fonsp/Pluto.jl/issues/2810
# @testset "pluto notebooks" begin
# @testplutonotebooks(example_dir, notebooks)
# end
# This kind of test works without Pluto
@testset "notebooks as scripts" begin
@testscripts(example_dir, notebooks)
end
@testset "module examples" begin
@testmodules(example_dir, modules, a=2)
end
@testset "scripts" begin
@testscripts(example_dir, scripts)
end