Skip to content

Commit e2ad6b1

Browse files
authored
Merge branch 'main' into vc/custom_record
2 parents f45b757 + 2cebb2a commit e2ad6b1

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/workflows/UnitTests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
test:
3434
runs-on: ${{ matrix.os }}
3535
strategy:
36+
fail-fast: false
3637
matrix:
3738
julia-version:
3839
- 'min'

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,24 @@ Simple parallel test runner for Julia tests with autodiscovery.
44

55
## Usage
66

7-
```julia
8-
julia> import Pkg
7+
The main entry point of `ParallelTestRunner` is the exported function `runtests`, which takes two mandatory arguments:
8+
9+
* the module for which you want to run the tests
10+
* the list of arguments passed to the test script, as a `Vector{String}`, this will typically be [`Base.ARGS`](https://docs.julialang.org/en/v1/base/constants/#Base.ARGS).
911

10-
julia> Pkg.test("ParallelTestRunner"; test_args=["--help"])
12+
With the `--help` flag you can print a help message:
13+
14+
```julia
15+
julia> using ParallelTestRunner
1116

17+
julia> ParallelTestRunner.runtests(ParallelTestRunner, ["--help"])
1218
Usage: runtests.jl [--help] [--list] [--jobs=N] [TESTS...]
1319

1420
--help Show this text.
1521
--list List all available tests.
1622
--verbose Print more information during testing.
1723
--quickfail Fail the entire run as soon as a single test errored.
18-
--jobs=N Launch `N` processes to perform tests (default: Sys.CPU_THREADS).
24+
--jobs=N Launch `N` processes to perform tests.
1925

2026
Remaining arguments filter the tests that will be executed.
2127
```
@@ -68,7 +74,9 @@ runtests(MyModule, ARGS; init_code)
6874
There are a few packages already using `ParallelTestRunner.jl` to parallelize their tests, you can look at their setups if you need inspiration to move your packages as well:
6975

7076
* [`Enzyme.jl`](https://github.com/EnzymeAD/Enzyme.jl/blob/main/test/runtests.jl)
77+
* [`GPUArrays.jl`](https://github.com/JuliaGPU/GPUArrays.jl/blob/master/test/runtests.jl)
7178
* [`GPUCompiler.jl`](https://github.com/JuliaGPU/GPUCompiler.jl/blob/master/test/runtests.jl)
79+
* [`Metal.jl`](https://github.com/JuliaGPU/Metal.jl/blob/main/test/runtests.jl)
7280

7381
## Inspiration
7482
Based on [@maleadt](https://github.com/maleadt) test infrastructure for [CUDA.jl](https://github.com/JuliaGPU/CUDA.jl).

0 commit comments

Comments
 (0)