원클릭으로
run-tests
Run targeted JustPIC tests, prioritized by what's likely to break
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Run targeted JustPIC tests, prioritized by what's likely to break
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Checklist for adding new functionality to JustPIC
Monitor CI, auto-fix small issues, pause on bigger problems, retrigger flaky runs
Build JustPIC documentation locally, full or fast
Set up and validate a new JustPIC advection miniapp or benchmark script
| name | run-tests |
| description | Run targeted JustPIC tests, prioritized by what's likely to break |
Run targeted tests first, prioritized by what's most likely to fail given recent changes. Only fall back to the full suite once the targeted files pass.
Map the changed area to test files (testsets for a feature usually exist in both
test_2D.jl and test_3D.jl):
| Changed area | Test files to run first |
|---|---|
src/Particles/ (move/injection/utils) | test_2D.jl, test_3D.jl (Particles initialization, Cell index, Forced injection, Miniapps testsets) |
src/Particles/Advection/, src/Advection/ | test_integrators.jl, then advection testsets in test_2D.jl/test_3D.jl |
src/Interpolations/ | test_interpolation_kernels.jl, Interpolations testsets in test_2D.jl/test_3D.jl |
src/CellArrays/, src/launch.jl | test_CellArrays.jl |
src/MarkerChain/ | test_save_load.jl (only existing coverage — consider adding testsets to test_2D.jl when touching this area) |
src/PassiveMarkers/ | Passive markers testsets in test_2D.jl/test_3D.jl |
src/PhaseRatios/ | Phase ratios testsets in test_CellArrays.jl |
src/Physics/ | Subgrid diffusion testsets in test_2D.jl/test_3D.jl |
src/IO/ | test_save_load.jl |
Exports / Project.toml / new deps | test_Aqua.jl |
ext/ | full GPU run (--backend=CUDA) — extensions are only exercised there |
Single file, CPU (fast iteration; needs TestEnv in your default env once:
julia -e 'using Pkg; Pkg.add("TestEnv")'):
julia --project=. -e 'using TestEnv; TestEnv.activate();
ENV["JULIA_JUSTPIC_BACKEND"] = "CPU";
include("test/test_2D.jl")'
Swap the env var to "CUDA" / "AMDGPU" to run the same file on a GPU.
test_Aqua.jl for any change touching exports, deps, or method signatures
(ambiguity checks)julia --project=. -e 'using Pkg; Pkg.test()' # CPU
julia --project=. -e 'using Pkg; Pkg.test(; test_args=["--backend=CUDA"])' # GPU
test_*.jl files must be registered in test/runtests.jl (both the CPU include
list and the gpu_testfiles tuple) or they never run--project=<Pkg.test sandbox>; that flag
is load-bearing, don't "simplify" it away