Skip to content

Commit

Permalink
Test whether benchmarks are up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
adrhill committed Oct 10, 2024
1 parent 2edd3f7 commit 0120ff0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
PkgJogger = "10150987-6cc1-4b76-abee-b1c1cbd91c01"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
ReferenceTests = "324d217c-45ce-50fc-942e-d289b448e8cf"
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
Expand Down
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ using JET
@info "Testing analyzers on batches..."
include("test_batches.jl")
end
@testset "Benchmark correctness" begin
@info "Testing whether benchmarks are up-to-date..."
include("test_benchmarks.jl")
end
end
1 change: 1 addition & 0 deletions test/test_batches.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ using Test

using Flux
using Random
using StableRNGs: StableRNG
using Distributions: Laplace

pseudorand(dims...) = rand(StableRNG(123), Float32, dims...)
Expand Down
4 changes: 4 additions & 0 deletions test/test_benchmarks.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
using PkgJogger
using ExplainableAI

PkgJogger.@test_benchmarks ExplainableAI

0 comments on commit 0120ff0

Please sign in to comment.