Skip to content

Commit faf97df

Browse files
authored
test: use ParallelTestRunner.jl (#277)
Use ParallelTestRunner.jl for subpackage tests. Tests are refactored into their own files to leverage parallelization.
1 parent 4c900fb commit faf97df

File tree

18 files changed

+1811
-1778
lines changed

18 files changed

+1811
-1778
lines changed

.github/workflows/Tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ jobs:
8383
${{ runner.os }}-
8484
- uses: julia-actions/julia-buildpkg@v1
8585
- uses: julia-actions/julia-runtest@v1
86+
with:
87+
test_args: "--verbose"
8688
env:
8789
GROUP: "GeneralAstrodynamics"
8890
- uses: julia-actions/julia-processcoverage@v1

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,33 @@ or navigate to top-level of `<subpackage>` and run tests as usual:
9696
(GeneralAstrodynamics/lib/AstrodynamicalCalculations) pkg> test
9797
```
9898

99-
### Explicit imports
99+
List available tests for a given <subpackage>:
100100

101-
See the documentation for [`ExplicitImports.jl`]() for standard usage. For non-package files at path `<fpath>` relative to the top-level of `<subpackage>`, run the following:
101+
```julia-repl
102+
> julia --proj
103+
104+
julia> using Pkg
105+
106+
julia> Pkg.test("<subpackage>"; test_args = `--list`)
107+
```
108+
109+
Run specific tests for a given <subpackage>:
102110

103111
```julia-repl
104112
> julia --proj
105113
114+
julia> using Pkg
115+
116+
julia> Pkg.test("<subpackage>"; test_args = `--verbose <filename>`)
117+
```
118+
119+
for a given filename listed in the previous usage example. Partial matches for the start of the filename are also accepted.
120+
121+
### Explicit imports
122+
123+
See the documentation for [`ExplicitImports.jl`]() for standard usage. For non-package files at path `<fpath>` relative to the top-level of `<subpackage>`, run the following:
124+
125+
```julia-repl
106126
julia> using ExplicitImports, <subpackage>
107127
108128
julia> include(<fpath>)

0 commit comments

Comments
 (0)