Test Stages
Testing & Qualitytest-stagesTest Stages is an Agent Skill for testing & quality published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Staged test organization and testing guidelines for Mycelia
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/development/test-stages/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/test-stages, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Mycelia Test Stage Organization
The test suite is tiered by workflow stage.
Test Stage Directories
test/1_data_acquisition/- Data loading and acquisitiontest/2_preprocessing_qc/- Quality control and preprocessingtest/3_feature_extraction_kmer/- K-mer analysis and feature extractiontest/4_assembly/- Assembly algorithmstest/5_validation/- Validation and verificationtest/6_annotation/- Annotation workflowstest/7_comparative_pangenomics/- Comparative and pangenomic analysistest/8_tool_integration/- External tool integration
Additional directories:
test/in_development/- Opt-in experimental teststest/deprecated/- Legacy tests (do not use)
Adding New Tests
- Place tests in the relevant stage directory
- Name files after the feature (e.g.,
assembly_merging.jl) - Use
Test.@testsetwith descriptive labels - Use small fixtures from
assembly_test_data/ - Use
StableRNGsfor deterministic seeds
Example:
import Test
import StableRNGs
Test.@testset "Assembly Merging" begin
rng = StableRNGs.StableRNG(42)
# Test code with deterministic randomness
end
Test Commands
# Core tests (Aqua + optional JET)
julia --project=. -e "import Pkg; Pkg.test()"
# Full pipeline tests
MYCELIA_RUN_ALL=true julia --project=. -e "import Pkg; Pkg.test()"
# External tool tests
MYCELIA_RUN_EXTERNAL=true julia --project=. -e "import Pkg; Pkg.test()"
# Coverage
julia --project=. --code-coverage=user -e "import Pkg; Pkg.test()"
# Static analysis
julia --project=. test/jet.jl
Testing Rules
- NEVER disable tests because functionality is broken - fix the implementation first
- Use
Test.@test_skipONLY for explicitly planned but unimplemented features - External tool tests must run with
MYCELIA_RUN_EXTERNAL=truewithout extra flags - Use simulated inputs and default database paths where possible
- Extended tutorials/benchmarks are opt-in; note runtime or external-tool requirements