/aa-jl:testing-julia-packagefrom aa-jl
Sets up and runs tests for Julia packages using workspace-based test dependencies, Pkg.test(), focused local runs, and optional parallel test files.
Ships in aa-jl. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use Julia 1.13 as the development baseline. Keep test-only dependencies in a workspace project so they are resolved together with the package and share the root manifest.
Add test to the root package's workspace:
[workspace]
projects = ["test"]
If you are migrating from the older [extras]/[targets] style, remove those
sections from the root Project.toml once test/Project.toml exists —
Pkg.test() ignores [targets] when a test/Project.toml is present.
Create test/Project.toml and declare the package, Test, and every other
package that tests import. Workspace projects do not inherit the root
project's dependencies.
When filling this in, substitute MyPkg with the actual package name and UUID
from the root Project.toml, and write tests against the package's real public
API.
[deps]
MyPkg = "<UUID from the root Project.toml>"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
[sources]
MyPkg = {path = ".."}
From the package root, resolve the test environment:
julia --project=test -e 'using Pkg; Pkg.resolve()'
Alternatively, add dependencies with Pkg while the test project is active:
julia --project=test -e 'using Pkg; Pkg.develop(path="."); Pkg.add("Test")'
Create test/runtests.jl and exercise the public API:
using Test
using MyPkg
@testset "MyPkg" begin
@test my_function(2) == 4
end
For fast local iteration, run the test entry point directly in the test environment:
julia --project=test test/runtests.jl
Run the full package test workflow before merging and in CI:
julia --project -e 'using Pkg; Pkg.test()'
Pkg.test() runs test/runtests.jl in a fresh process with the test-specific
dependencies. It can resolve compatible versions for the test environment;
to require the existing resolution, pass allow_reresolve=false.
Commit Manifest.toml and test/Manifest.toml for reproducible CI, or add
them to .gitignore if you prefer CI to resolve fresh each run.
For a focused check, make test files independently runnable and invoke the
relevant file with --project=test. If selecting individual testsets or source
line ranges is important, TestRunner.jl
can select named testsets or line ranges. Its filters may select more than
intended, so confirm the test summary reports the expected count.
For a large suite of independent files, add ParallelTestRunner to the test project:
julia --project=test -e 'using Pkg; Pkg.add("ParallelTestRunner")'
Use its file autodiscovery in test/runtests.jl; remove manual include calls
that assemble the suite:
using MyPkg
using ParallelTestRunner
runtests(MyPkg, ARGS)
Each discovered test file runs in isolation and must load its own dependencies
and define its own testsets. Pass runner options through Pkg.test:
julia --project -e 'using Pkg; Pkg.test(; test_args=["--jobs=4"])'
julia --project -e 'using Pkg; Pkg.test(; test_args=["--list"])'
Use parallel execution only when the test files are independent and the added
runner is useful to the project. Keep Pkg.test() as the canonical full-suite
check.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
julia-testing, pkg-test, test-dependencies, parallel-testing
Other plugins' skills for the same job
14 skills in this plugin
/auditing-julia-package-practicesUse when you review an existing or in-progress Julia package against this repository's development practices and want prioritized, evidence-based findings and concrete remediation suggestions/creating-julia-appUse when you create a CLI written in Julia packages or MCP servers/debugging-juliaUse when Julia code errors, throws an exception, produces wrong results, or crashes and you need to find the cause from the command line: capturing and reading stack traces, locating the failing method with @which/@code_warntype/@code_typed, finding potential runtime errors with JET.jl, and narrowing to a minimal reproduction/developing-julia-packageUse when you implement or edit code inside an existing Julia package: module/`include` layout, multiple dispatch, type annotations and stability, formatting, and docstrings/developing-julia-rust-bindingsUse when implementing or debugging Julia bindings to a Rust library with RustCall.jl or a native ABI. Covers memory ownership, Julia dispatch, reproducible builds, and isolating upstream failures with executable reproductions./documenting-julia-packageUse when you add, build, or publish documentation for a Julia package with Documenter.jl: the `docs/` layout, `docs/Project.toml`, `makedocs`/`deploydocs`, `@docs` and docstring blocks, doctests, and GitHub Pages deploymentnpx claudepluginhub atelierarith/atelier-arith-julia-development-skills --plugin aa-jl