|
1 | | -using SafeTestsets, Test |
| 1 | +# Test entry point — uses ParallelTestRunner.jl to run test files in parallel |
| 2 | +# worker processes (auto-discovered from `test/`). |
| 3 | +# |
| 4 | +# Run locally: |
| 5 | +# julia --project=test test/runtests.jl # run all tests |
| 6 | +# julia --project=test test/runtests.jl --list # list discovered test files |
| 7 | +# julia --project=test test/runtests.jl --help # show full usage |
| 8 | +# julia --project=test test/runtests.jl <name> [<name>…] # only files whose |
| 9 | +# # name starts with <name> |
| 10 | +# |
| 11 | +# Or from the Julia REPL: |
| 12 | +# using Pkg; Pkg.test("AlgorithmsInterface"; |
| 13 | +# test_args=["--jobs=4", "--verbose"]) |
| 14 | +# |
| 15 | +# Useful CLI options: |
| 16 | +# --jobs=N number of worker processes (default: chosen from CPU/memory) |
| 17 | +# --verbose print per-test timing, compile time, and memory stats |
| 18 | +# --quickfail abort the whole run on the first failure |
2 | 19 |
|
3 | | -# these have to be included here to make show tests behave |
| 20 | +using ParallelTestRunner |
4 | 21 | using AlgorithmsInterface |
5 | | -using Dates |
6 | 22 |
|
7 | | -@testset "AlgorithmsInterface.jl" begin |
8 | | - @safetestset "Newton" begin |
9 | | - include("newton.jl") |
10 | | - end |
11 | | - |
12 | | - @safetestset "Stopping Criteria" begin |
13 | | - include("stopping_criterion.jl") |
14 | | - end |
15 | | - |
16 | | - @safetestset "Logging Infrastructure" begin |
17 | | - include("logging.jl") |
18 | | - end |
19 | | - |
20 | | - @safetestset "Aqua" begin |
21 | | - using AlgorithmsInterface, Aqua |
22 | | - Aqua.test_all(AlgorithmsInterface) |
23 | | - end |
24 | | -end |
| 23 | +runtests(AlgorithmsInterface, ARGS) |
0 commit comments