Skip to content
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
8 changes: 4 additions & 4 deletions docs/src/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ using MyPackage
# Manually define your test suite
testsuite = Dict(
"basic" => quote
include("basic.jl")
include(joinpath(@__DIR__, "basic.jl"))
end,
"advanced" => quote
include("advanced.jl")
include(joinpath(@__DIR__, "advanced.jl"))
@test 40 + 2 ≈ 42
end
)
Expand All @@ -51,7 +51,7 @@ using MyPackage

# Start with autodiscovered tests
cd(test_dir) do # hide
testsuite = find_tests(pwd())
testsuite = find_tests(@__DIR__)

# Parse arguments
args = parse_args(ARGS)
Expand Down Expand Up @@ -291,7 +291,7 @@ function jltest {
1. **Handle platform differences**: Use conditional logic in your test suite setup to handle platform-specific tests:

```julia
testsuite = find_tests(pwd())
testsuite = find_tests(@__DIR__)
if Sys.iswindows()
delete!(testsuite, "unix_specific_test")
end
Expand Down
2 changes: 1 addition & 1 deletion src/ParallelTestRunner.jl
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ Customize the test suite
using ParallelTestRunner
using MyPackage

testsuite = find_tests(pwd())
testsuite = find_tests(@__DIR__)
args = parse_args(ARGS)
if filter_tests!(testsuite, args)
# Remove a specific test
Expand Down