-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make tests less noisy and actually test logging messages
- Loading branch information
Showing
4 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,20 +9,20 @@ import Documenter | |
|
||
@testset "genkeys-added" begin | ||
using Example | ||
DocumenterTools.genkeys(user="JuliaLang", repo="[email protected]:JuliaLang/Example.jl.git") | ||
@test_logs (:info, r"Add the key below") (:info, r"Add a secure 'Repository secret' named 'DOCUMENTER_KEY'") DocumenterTools.genkeys(user="JuliaLang", repo="[email protected]:JuliaLang/Example.jl.git", io=devnull) | ||
end | ||
|
||
@testset "genkeys-deved" begin | ||
import Pkg | ||
# It's unlikely that Revise will ever enter our dependency graph | ||
Pkg.develop("Revise") | ||
import Revise | ||
DocumenterTools.genkeys(Revise) | ||
@test_logs (:info, r"Add the key below") (:info, r"Add a secure 'Repository secret' named 'DOCUMENTER_KEY'") DocumenterTools.genkeys(Revise; io=devnull) | ||
end | ||
|
||
@testset "outdated warnings" begin | ||
include("outdated.jl") | ||
end | ||
|
||
Documenter.doctest(nothing, [DocumenterTools]) | ||
@test_logs (:info, r"SetupBuildDirectory") (:info, r"Doctest") (:info, r"Skipped ExpandTemplates step") (:info, r"Skipped CrossReferences step") (:info, r"Skipped CheckDocument step") (:info, r"Skipped Populate step") (:info, r"Skipped RenderDocument step") Documenter.doctest(nothing, [DocumenterTools]) | ||
end |