We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 118c0f0 commit b5ff4d5Copy full SHA for b5ff4d5
test/runtests.jl
@@ -1,9 +1,22 @@
1
import RegistryTools
2
using Test: @testset, @test
3
+import Pkg
4
5
@testset "RegistryTools" begin
6
7
include("regedit.jl")
8
include("compress.jl")
9
10
+# ExplicitImports does not support as old Julia versions as RegistryTools does.
11
+# Change this to a regular test dependency when it becomes possible, i.e.
12
+# when pre-1.7 support is dropped.
13
+if VERSION >= v"1.7"
14
+Pkg.add(name = "ExplicitImports", uuid = "7d51a73a-1435-4ff3-83d9-f097790105c7", preserve=Pkg.PRESERVE_ALL)
15
+using ExplicitImports: check_no_implicit_imports, check_no_stale_explicit_imports
16
+@testset "ExplicitImports" begin
17
+ @test isnothing(check_no_implicit_imports(RegistryTools))
18
+ @test isnothing(check_no_stale_explicit_imports(RegistryTools))
19
+end
20
21
+
22
end
0 commit comments