Skip to content

Commit

Permalink
Use MetaTesting.jl in tests (#284)
Browse files Browse the repository at this point in the history
* Add MetaTesting as test dependency

* Set MetaTesting compat

* Use MetaTesting in tests

* Increment patch number

* Update Project.toml

Co-authored-by: Frames White <[email protected]>

---------

Co-authored-by: Frames White <[email protected]>
  • Loading branch information
sethaxen and oxinabox authored May 27, 2023
1 parent c16d006 commit c421f7c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 200 deletions.
9 changes: 8 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "ChainRulesTestUtils"
uuid = "cdddcdb0-9152-4a09-a978-84456f9df70a"
version = "1.10.1"
version = "1.11.0"

[deps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
Expand All @@ -14,4 +14,11 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
ChainRulesCore = "1.11.2"
Compat = "3, 4"
FiniteDifferences = "0.12.12"
MetaTesting = "0.1"
julia = "1"

[extras]
MetaTesting = "9e32d19f-1e4f-477a-8631-b16c78aa0f56"

[targets]
test = ["MetaTesting"]
198 changes: 0 additions & 198 deletions test/meta_testing_tools.jl

This file was deleted.

2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ using ChainRulesTestUtils
using ChainRulesTestUtils: rand_tangent
using FiniteDifferences
using LinearAlgebra
using MetaTesting
using Random
using Test

# in these meta tests, we always want to use `@inferred`
ChainRulesTestUtils.TEST_INFERRED[] = true

@testset "ChainRulesTestUtils.jl" begin
include("meta_testing_tools.jl")
include("iterator.jl")
include("check_result.jl")
include("testers.jl")
Expand Down

2 comments on commit c421f7c

@sethaxen
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
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/84363

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 v1.11.0 -m "<description of version>" c421f7c3b37dcca8fc7bcb316ba9f11c94293352
git push origin v1.11.0

Please sign in to comment.