Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
make tests work for julia 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Oct 22, 2020
1 parent 067a3c5 commit cd96649
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
authors = ["Simon Danisch", "Julius Krumbiegel"]
name = "AbstractPlotting"
uuid = "537997a7-5e4e-5d89-9595-2241ea00577e"
authors = ["Simon Danisch", "Julius Krumbiegel"]
version = "0.13.0"
version = "0.13.1"

[deps]
Animations = "27a7e980-b3e6-11e9-2bcd-0b925532e340"
Expand Down
4 changes: 2 additions & 2 deletions test/ReferenceTests/src/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function compare(test_files::Vector{String}, reference_dir::String; missing_refi
if !isdir(ref_path)
push!(missing_refimages, test_path)
else
compare(readdir(test_path, join=true), ref_path; missing_refimages=missing_refimages, scores=scores)
compare(joinpath.(test_path, readdir(test_path)), ref_path; missing_refimages=missing_refimages, scores=scores)
end
elseif isfile(test_path)
if !isfile(ref_path)
Expand All @@ -65,7 +65,7 @@ end

function reference_tests(recorded; ref_images = ReferenceTests.download_refimages(), difference=0.03)
@testset "Reference Image Tests" begin
missing_files, scores = ReferenceTests.compare(readdir(recorded, join=true), ref_images)
missing_files, scores = ReferenceTests.compare(joinpath.(recorded, readdir(recorded)), ref_images)
@testset "$name" for (name, score) in scores
@test score < difference
end
Expand Down
2 changes: 1 addition & 1 deletion test/reference_tests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Pkg.develop(path=joinpath(@__DIR__, "ReferenceTests"))
Pkg.develop(Pkg.PackageSpec(path=joinpath(@__DIR__, "ReferenceTests")))

using ReferenceTests

Expand Down

2 comments on commit cd96649

@SimonDanisch
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/23465

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.13.1 -m "<description of version>" cd96649a03a84944cc635652d8950a0d559189dc
git push origin v0.13.1

Please sign in to comment.