Skip to content

Commit a2aa1c9

Browse files
authored
Merge pull request #88 from JuliaAstro/parallel-test-runner
Switch from TestItemRunner --> ParallelTestRunner
2 parents d575f2a + e797e0b commit a2aa1c9

26 files changed

+982
-927
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
test:
1616
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
1717
runs-on: ${{ matrix.os }}
18+
env:
19+
JULIA_NUM_THREADS: auto
1820
strategy:
1921
fail-fast: false
2022
matrix:

Project.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Photometry"
22
uuid = "af68cb61-81ac-52ed-8703-edc140936be4"
3-
authors = ["Miles Lucas <mdlucas@hawaii.edu>"]
43
version = "0.9.6"
4+
authors = ["Miles Lucas <mdlucas@hawaii.edu>"]
55

66
[deps]
77
ImageFiltering = "6a3955dd-da59-5b1f-98d4-e7296123deb5"
@@ -16,7 +16,6 @@ Rotations = "6038ab10-8711-5258-84ad-4b1120ba62dc"
1616
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
1717
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1818
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
19-
TestItems = "1c621080-faea-4a02-84b6-bbd5e436b8fe"
2019
Transducers = "28d57a85-8fef-5791-bfe6-a80928e7c999"
2120
TypedTables = "9d95f2ec-7b3d-5a63-8d20-e2491e220bb9"
2221

@@ -33,7 +32,6 @@ Rotations = "0.13,1"
3332
StaticArrays = "0.12,1"
3433
Statistics = "1"
3534
StatsBase = "0.28,0.29,0.30,0.31,0.32,0.33, 0.34"
36-
TestItems = "1.0.0"
3735
Transducers = "0.4"
3836
TypedTables = "1"
3937
julia = "1.10"

README.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,68 @@ Table with 4 columns and 2 rows:
4444

4545
Please see the to-do list above for project ideas as well as any open issues! If you add new functionality, please add appropriate documentation and testing. In addition, please increment the minor version of the package to reflect the new changes!
4646

47+
Tests are run with [ParallelTestRunner.jl](https://github.com/JuliaTesting/ParallelTestRunner.jl), which hooks into the standard `Pkg.test` harness for more granular control. See below for some brief usage examples run from the package root directory:
48+
49+
```julia-repl
50+
julia --proj
51+
52+
julia> using Pkg
53+
```
54+
55+
**List available testsets:**
56+
57+
```julia-repl
58+
julia> Pkg.test("Photometry"; test_args=`--list`);
59+
# ...
60+
Testing Running tests...
61+
Available tests:
62+
- aperture/circular
63+
- aperture/elliptical
64+
- aperture/overlap
65+
- aperture/photometry
66+
- aperture/plotting
67+
- aperture/rectangle
68+
- backgroud/background
69+
- backgroud/estimators
70+
- backgroud/interpolators
71+
- detection/detection
72+
Testing Photometry tests passed
73+
```
74+
75+
**Run a subset of testsets in verbose mode, and enable default threading:**
76+
77+
```julia-repl
78+
julia> Pkg.test("Photometry"; test_args=`--verbose aperture`, julia_args=`--threads=auto`);
79+
# ...
80+
Testing Running tests...
81+
Running 3 tests in parallel. If this is too many, specify the `--jobs=N` argument to the tests, or set the `JULIA_CPU_THREADS` environment variable.
82+
│ │ ──────────────── CPU ──────────────── │
83+
Test (Worker) │ Time (s) │ GC (s) │ GC % │ Alloc (MB) │ RSS (MB) │
84+
aperture/photometry (1) │ started at 2025-10-21T16:36:40.959
85+
aperture/overlap (2) │ started at 2025-10-21T16:36:40.959
86+
aperture/plotting (3) │ started at 2025-10-21T16:36:40.959
87+
aperture/plotting (3) │ 6.33 │ 0.59 │ 9.3 │ 638.40 │ 733.98 │
88+
aperture/circular (3) │ started at 2025-10-21T16:36:49.971
89+
aperture/overlap (2) │ 8.83 │ 0.61 │ 6.9 │ 744.02 │ 733.98 │
90+
aperture/elliptical (2) │ started at 2025-10-21T16:36:52.293
91+
aperture/circular (3) │ 1.61 │ 0.00 │ 0.0 │ 160.19 │ 733.98 │
92+
aperture/rectangle (3) │ started at 2025-10-21T16:36:52.571
93+
aperture/elliptical (2) │ 0.74 │ 0.00 │ 0.0 │ 79.68 │ 733.98 │
94+
aperture/rectangle (3) │ 1.56 │ 0.00 │ 0.0 │ 142.79 │ 734.75 │
95+
aperture/photometry (1) │ 19.37 │ 0.94 │ 4.8 │ 2712.83 │ 821.66 │
96+
97+
Test Summary: | Pass Total Time
98+
Overall | 9478 9478 24.1s
99+
aperture/plotting | 27 27 6.3s
100+
aperture/overlap | 9226 9226 8.8s
101+
aperture/circular | 21 21 1.6s
102+
aperture/elliptical | 20 20 0.7s
103+
aperture/rectangle | 12 12 1.6s
104+
aperture/photometry | 172 172 19.4s
105+
SUCCESS
106+
Testing Photometry tests passed
107+
```
108+
47109
## License
48110

49111
The work derived from `astropy/photutils` is BSD 3-clause and the work derived from `kbarbary/sep` is BSD 3-clause. All other work is considered MIT expat. Therefore this work as a whole is BSD 3-clause. [`LICENSE`](LICENSE) contains all licenses and any files using derived work are noted at the top of the file.

src/Photometry.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module Photometry
22

3-
using TestItems
43
using Reexport
54

65
include("aperture/Aperture.jl")

0 commit comments

Comments
 (0)