-
Notifications
You must be signed in to change notification settings - Fork 116
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 #661 from JuliaSymbolics/SafeTestsets
Enhance Reproducibility and Isolation with SafeTestsets
- Loading branch information
Showing
9 changed files
with
46 additions
and
38 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
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,10 @@ | ||
using Documenter, SymbolicUtils | ||
|
||
DocMeta.setdocmeta!( | ||
SymbolicUtils, | ||
:DocTestSetup, | ||
:(using SymbolicUtils); | ||
recursive=true | ||
) | ||
|
||
doctest(SymbolicUtils) |
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
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
using SymbolicUtils | ||
|
||
include("utils.jl") | ||
|
||
@syms a b c | ||
|
||
@testset "Equality" begin | ||
|
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 |
---|---|---|
@@ -1,34 +1,20 @@ | ||
using Documenter | ||
using Pkg | ||
using Test | ||
using SymbolicUtils | ||
using ReferenceTests | ||
import IfElse: ifelse | ||
using Pkg, Test, SafeTestsets | ||
|
||
DocMeta.setdocmeta!( | ||
SymbolicUtils, | ||
:DocTestSetup, | ||
:(using SymbolicUtils); | ||
recursive=true | ||
) | ||
|
||
doctest(SymbolicUtils) | ||
SymbolicUtils.show_simplified[] = false | ||
|
||
include("utils.jl") | ||
|
||
if haskey(ENV, "SU_BENCHMARK_ONLY") | ||
include("benchmark.jl") | ||
else | ||
include("basics.jl") | ||
include("order.jl") | ||
include("polyform.jl") | ||
include("rewrite.jl") | ||
include("rulesets.jl") | ||
include("code.jl") | ||
include("cse.jl") | ||
include("interface.jl") | ||
# Disabled until https://github.com/JuliaMath/SpecialFunctions.jl/issues/446 is fixed | ||
include("fuzz.jl") | ||
include("adjoints.jl") | ||
@testset begin | ||
if haskey(ENV, "SU_BENCHMARK_ONLY") | ||
@safetestset "Benchmark" begin include("benchmark.jl") end | ||
else | ||
@safetestset "Doc" begin include("doctest.jl") end | ||
@safetestset "Basics" begin include("basics.jl") end | ||
@safetestset "Order" begin include("order.jl") end | ||
@safetestset "PolyForm" begin include("polyform.jl") end | ||
@safetestset "Rewrite" begin include("rewrite.jl") end | ||
@safetestset "Rulesets" begin include("rulesets.jl") end | ||
@safetestset "Code" begin include("code.jl") end | ||
@safetestset "CSE" begin include("cse.jl") end | ||
@safetestset "Interface" begin include("interface.jl") end | ||
# Disabled until https://github.com/JuliaMath/SpecialFunctions.jl/issues/446 is fixed | ||
@safetestset "Fuzz" begin include("fuzz.jl") end | ||
@safetestset "Adjoints" begin include("adjoints.jl") end | ||
end | ||
end |