@@ -475,7 +475,7 @@ const ArgType = Union{Module,PatternX,AbstractString,AbstractArray,Tuple,Symbol,
475
475
476
476
Run tests declared with [`@testset`](@ref) blocks, within modules `mod` if specified,
477
477
or within all currently loaded modules otherwise.
478
- When no `pattern`s are specified, all the tests are run .
478
+ Filtering `pattern`s can be specified to run only a subset of the tests .
479
479
480
480
### Keywords
481
481
@@ -543,19 +543,19 @@ The "subject" of a testset is the concatenation of the subject of its parent `@t
543
543
if any, with `"/\$ description"` where `description` is the testset's description.
544
544
For example:
545
545
```julia
546
- @testset "a" begin # subject == "/a"
546
+ @testset "a" begin # subject is "/a"
547
547
@testset "b" begin # subject is "/a/b"
548
548
end
549
- @testset "c\$ i" for i=1:2 # subjects are "/a/c1" & "/a/c2"
549
+ @testset "c\$ i" for i=1:2 # subjects are "/a/c1" and "/a/c2"
550
550
end
551
551
end
552
552
```
553
553
554
- When `pattern` isa a `Regex`, a testset is guaranteed to run only when its subject
555
- matches `pattern`.
556
- Moreover, even if a testset matches (e.g. "/a" above with `pattern == r"a\$ "`),
554
+ When `pattern` is a `Regex`, a testset is guaranteed to run only when its subject
555
+ matches `pattern`.
556
+ Moreover, even if a testset matches (e.g. ` "/a"` above with `pattern == r"a\$ "`),
557
557
its nested testsets might be filtered out if they don't also match
558
- (e.g. "a/b" doesn't match `pattern`).
558
+ (e.g. ` "a/b"` doesn't match `pattern`).
559
559
560
560
If a passed `pattern` is a string, then it is wrapped in a `Regex` with the
561
561
"case-insensitive" flag, and must match literally the subjects.
@@ -583,7 +583,7 @@ of `mod`; if `sub` is also specified as `sub => subpat`, the patterns are merged
583
583
i.e. this is equivalent to specifying `sub => (pattern, subpat)`.
584
584
585
585
!!! note
586
- this function executes each (top-level) `@testset` block using `eval` *within* the
586
+ This function executes each (top-level) `@testset` block using `eval` *within* the
587
587
module in which it was written (e.g. `mod`, when specified).
588
588
"""
589
589
function retest (@nospecialize (args:: ArgType... );
@@ -593,7 +593,7 @@ function retest(@nospecialize(args::ArgType...);
593
593
group:: Bool = true ,
594
594
verbose:: Real = true , # should be @nospecialize, but not supported on old Julia
595
595
recursive:: Bool = true ,
596
- id= nothing ,
596
+ id:: Maybe{Bool} = nothing ,
597
597
strict:: Bool = true ,
598
598
dup:: Bool = false ,
599
599
static:: Maybe{Bool} = nothing ,
0 commit comments