Skip to content

Commit

Permalink
mark test public
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner committed Nov 17, 2023
1 parent 25db50b commit d2c8418
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@ authors = ["Lilith Orion Hafner <[email protected]> and contributors"]
version = "0.1.0"

[deps]
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"

[compat]
julia = "1.9"
Compat = "4.10"
Markdown = "1.9"
Pkg = "1.9"
Random = "1.9"
Serialization = "1.9"
julia = "1.9"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Expand Down
9 changes: 9 additions & 0 deletions src/RegressionTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ module RegressionTests
using Random
using Pkg, Markdown
using Serialization
using Compat

# Callie
using Serialization


# Caller
export runbenchmarks
@compat public test

# Callie
export @track, @group
Expand Down Expand Up @@ -39,6 +41,13 @@ end

test(::Type{Bool}) = report_changes(runbenchmarks(project=dirname(pwd())))
struct RegressionTestFailure <: Exception end

"""
test()
When called in testing, runs regression tests, reports all changes, and throws if there are
regressions.
"""
test() = test(Bool) || throw(RegressionTestFailure())

"""
Expand Down

0 comments on commit d2c8418

Please sign in to comment.