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
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ First you should remove all `include` statements that you added.
Then in your `test/runtests.jl` add:

```julia
using MyModule
using ParallelTestRunner

runtests(MyModule, ARGS)
Expand All @@ -38,14 +39,14 @@ runtests(MyModule, ARGS)
`runtests` takes a keyword argument that acts as a filter function

```julia
function testfilter(test)
function test_filter(test)
if Sys.iswindows() && test == "ext/specialfunctions"
return false
end
return true
end

runtests(MyModule, ARGS; testfilter)
runtests(MyModule, ARGS; test_filter)
```

### Provide defaults
Expand Down
1 change: 1 addition & 0 deletions src/ParallelTestRunner.jl
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ end
function save_test_history(mod::Module, history::Dict{String, Float64})
history_file = get_history_file(mod)
try
mkpath(dirname(history_file))
serialize(history_file, history)
catch e
@warn "Failed to save test history to $history_file" exception=e
Expand Down
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ cd(@__DIR__)

@test contains(str, r"basic .+ started at")
@test contains(str, "SUCCESS")

@test isfile(ParallelTestRunner.get_history_file(ParallelTestRunner))
end

@testset "custom tests and init code" begin
Expand Down