Skip to content

Commit ee420b5

Browse files
committed
Use test Project.toml
1 parent 7fed9cc commit ee420b5

File tree

5 files changed

+46
-13
lines changed

5 files changed

+46
-13
lines changed

Project.toml

-11
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,3 @@ ChainRulesCore = "1"
2424
StaticArraysCore = "1"
2525
Statistics = "1"
2626
julia = "1.6"
27-
28-
[extras]
29-
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
30-
ChainRulesTestUtils = "cdddcdb0-9152-4a09-a978-84456f9df70a"
31-
ElasticArrays = "fdbdab4c-e67f-52f5-8c3f-e7b388dad3d4"
32-
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
33-
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
34-
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
35-
36-
[targets]
37-
test = ["Adapt", "ChainRulesTestUtils", "ElasticArrays", "StaticArrays", "StatsBase", "Test"]

test/Project.toml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[deps]
2+
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
3+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
4+
ChainRulesTestUtils = "cdddcdb0-9152-4a09-a978-84456f9df70a"
5+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
6+
ElasticArrays = "fdbdab4c-e67f-52f5-8c3f-e7b388dad3d4"
7+
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
8+
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
9+
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
10+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
11+
12+
[compat]
13+
Documenter = "1"

test/runtests.jl

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# This file is a part of ArraysOfArrays.jl, licensed under the MIT License (MIT).
22

3-
using Test
3+
import Test
44

55
Test.@testset "Package ArraysOfArrays" begin
6+
include("test_aqua.jl")
67
include("functions.jl")
78
include("array_of_similar_arrays.jl")
89
include("vector_of_arrays.jl")
9-
end
10+
include("test_docs.jl")
11+
end # testset

test/test_aqua.jl

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This file is a part of ArraysOfArrays.jl, licensed under the MIT License (MIT).
2+
3+
import Test
4+
import Aqua
5+
import ArraysOfArrays
6+
7+
Test.@testset "Package ambiguities" begin
8+
Test.@test isempty(Test.detect_ambiguities(ArraysOfArrays))
9+
end # testset
10+
11+
Test.@testset "Aqua tests" begin
12+
Aqua.test_all(
13+
ArraysOfArrays,
14+
ambiguities = true
15+
)
16+
end # testset

test/test_docs.jl

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This file is a part of ArraysOfArrays.jl, licensed under the MIT License (MIT).
2+
3+
using Test
4+
using ArraysOfArrays
5+
import Documenter
6+
7+
Documenter.DocMeta.setdocmeta!(
8+
ArraysOfArrays,
9+
:DocTestSetup,
10+
:(using ArraysOfArrays);
11+
recursive=true,
12+
)
13+
Documenter.doctest(ArraysOfArrays)

0 commit comments

Comments
 (0)