Skip to content

Commit

Permalink
Merge pull request #56 from JuliaTesting/docs
Browse files Browse the repository at this point in the history
Update documentation
  • Loading branch information
JamesWrigley authored Sep 9, 2024
2 parents ae40377 + 9d1c6d4 commit 7758ac8
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 17 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: '1.5'
version: '1'
- name: Install dependencies
run: |
julia --project=docs/ -e '
Expand All @@ -25,5 +25,4 @@ jobs:
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
run: julia --project=docs/ docs/make.jl
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*Manifest.toml
docs/build
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ InlineTest = "bd334432-b1e7-49c7-a2dc-dd9149e4ebd6"
ReTest = "e0db7c4e-2690-44b9-bad6-7687da720f89"

[compat]
Documenter = "0.26"
Documenter = "1"
5 changes: 4 additions & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,17 +206,20 @@ load
### Filtering tests

* [`not`](@ref)
* [`pass`](@ref) and `fail`
* [`pass`](@ref) and [`fail`](@ref)
* [`reachable`](@ref)
* [`interpolated`](@ref)
* [`depth`](@ref)
* [`iter`](@ref)

```@docs
not
pass
fail
reachable
interpolated
depth
iter
```


Expand Down
2 changes: 1 addition & 1 deletion src/ReTest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ end

revise_pkgid() = Base.PkgId(Base.UUID("295af30f-e4ad-537b-8983-00126c2a3abe"), "Revise")

"accepted types as positional arguments of `retest`"
# Accepted types as positional arguments of `retest`
const ArgType = Union{Module,PatternX,AbstractString,AbstractArray,Tuple,Symbol,
Pair{Module,
<:Union{PatternX,AbstractString,AbstractArray,Tuple}}}
Expand Down
15 changes: 10 additions & 5 deletions src/patterns.jl
Original file line number Diff line number Diff line change
Expand Up @@ -518,14 +518,19 @@ depth(x::Integer) = Depth(Int(x))

"""
pass
Filtering pattern which matches any testset which already ran successfully.
The pattern `[pass, fail]` matches any testset which already ran.
"""
pass

"""
fail
Filtering patterns which match any testset which already ran,
succesfully for `pass` or with at least one error for `fail`.
The pattern `[pass, fail]` therefore matches any testset
which already ran.
Filtering pattern which matches any testset which already ran with at least one
error. The pattern `[pass, fail]` matches any testset which already ran.
"""
pass, fail
fail

"""
iter(i::Integer)
Expand Down
8 changes: 2 additions & 6 deletions src/testset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,7 @@ macro testset(mod::Module, isfinal::Bool, pat::Pattern, id::Int64, desc::Union{S
options, marks, stats, chan, loops, body, __source__)
end

"""
Generate the code for a `@testset` with a `begin`/`end` argument
"""
# Generate the code for a `@testset` with a `begin`/`end` argument
function testset_beginend(mod::Module, isfinal::Bool, pat::Pattern, id::Int64, desc, options,
marks::Marks, stats::Bool, chan, tests, source)
# Generate a block of code that initializes a new testset, adds
Expand Down Expand Up @@ -555,9 +553,7 @@ function testset_beginend(mod::Module, isfinal::Bool, pat::Pattern, id::Int64, d
return ex
end

"""
Generate the code for a `@testset` with a `for` loop argument
"""
# Generate the code for a `@testset` with a `for` loop argument
function testset_forloop(mod::Module, isfinal::Bool, pat::Pattern, id::Int64,
desc::Union{String,Expr}, options, marks::Marks, stats, chan,
loops, tests, source)
Expand Down

0 comments on commit 7758ac8

Please sign in to comment.