Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move test dependencies to test/Project.toml #882

Merged
merged 3 commits into from
May 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
Scratch = "6c6a2e73-6563-6170-7368-637461726353"

[compat]
Expand All @@ -24,10 +24,3 @@ GAP_pkg_juliainterface_jll = "=0.800.201, =0.800.202"
MacroTools = "0.5"
Scratch = "1.1"
julia = "1.6"

[extras]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "Documenter"]
1 change: 0 additions & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
GAP = "c863536a-3901-11e9-33e7-d5cd0df7b904"

[compat]
Documenter = "^0.27.0"
6 changes: 4 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Documenter, GAP, Markdown
using Documenter
using GAP
using GAP.Markdown

## The following code inserts a step into the list of tasks
## that are performed by Documenter.jl's function `makedocs`.
Expand Down Expand Up @@ -77,7 +79,7 @@ function compute_external_reference(link, meta, page, doc)
return true
end

DocMeta.setdocmeta!(GAP, :DocTestSetup, :(using GAP, Random); recursive = true)
DocMeta.setdocmeta!(GAP, :DocTestSetup, :(using GAP, GAP.Random); recursive = true)

makedocs(
sitename = "GAP.jl",
Expand Down
6 changes: 6 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
7 changes: 4 additions & 3 deletions test/doctest.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Documenter, GAP
using Documenter
using GAP

DocMeta.setdocmeta!(GAP, :DocTestSetup, :(using GAP, Random); recursive = true)
DocMeta.setdocmeta!(GAP, :DocTestSetup, :(using GAP, GAP.Random); recursive=true)

doctest(GAP; doctestfilters = GAP.GAP_doctestfilters)
doctest(GAP; doctestfilters=GAP.GAP_doctestfilters)
2 changes: 1 addition & 1 deletion test/help.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@testset "help" begin
using REPL
using GAP.REPL
tt = REPL.TerminalMenus.terminal

function test_gap_help(topic::String)
Expand Down
4 changes: 2 additions & 2 deletions test/replcompletions.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# the test setup and code in this file are based on stdlib/REPL/test/replcompletions.jl
using REPL.REPLCompletions
using REPL
using GAP.REPL.REPLCompletions
using GAP.REPL

function map_completion_text(completions)
c, r, res = completions
Expand Down
4 changes: 3 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Test, Documenter, GAP
using Test
using Documenter
using GAP

include("basics.jl")
include("adapter.jl")
Expand Down