Tracking issue for test coverage gaps, following the test suite added in #25 and extended in #26.
Current state: devtools::test() is green (79 pass, 0 fail), covering the core community + fitness primitives. Several exported functions remain untested.
Tested
- Object:
community_start, trait_matrix, length.community (+ internal community_add / community_drop)
- Bounds:
bounds, bounds_infinite, check_bounds, check_point
- Controls:
demographic_step_control, plant_default_assembly_control (via test setup)
- Demography / fitness:
community_demography (empty + single resident), community_selection_gradient, community_viable_fitness_1D, max_fitness, max_growth_rate
Untested — should work today (highest value)
Untested — blocked / deferred (test alongside the fix)
Notes
- When adding tests, verify each function actually works first; report breakage rather than asserting around it.
- Integration tests run the SCM and are a few seconds each — keep
max_patch_lifetime small (e.g. 30) as the existing tests do.
- See
CLAUDE.md (Test baseline / Known issues) for the broader status.
Tracking issue for test coverage gaps, following the test suite added in #25 and extended in #26.
Current state:
devtools::test()is green (79 pass, 0 fail), covering the core community + fitness primitives. Several exported functions remain untested.Tested
community_start,trait_matrix,length.community(+ internalcommunity_add/community_drop)bounds,bounds_infinite,check_bounds,check_pointdemographic_step_control,plant_default_assembly_control(via test setup)community_demography(empty + single resident),community_selection_gradient,community_viable_fitness_1D,max_fitness,max_growth_rateUntested — should work today (highest value)
community_solve_singularity_1D— 1D evolutionary attractor (headline capability; self-contained, expected to pass)assembler_start/assembler_run/assembler_control— the full assembly loop (stochastic and maximum-fitness births)community_fitness_landscape— grid method (GP/surrogate method may be separate)tidy_assembly— output tidyingmutational_vcv_proportionUntested — blocked / deferred (test alongside the fix)
community_plot_fitness_landscape— known not workingplot_community,plot_community_2d— plotting (visual; lower priority)plant_community_check_for_inviable_strategies— has an open TODO to drop its direct plant dependencyutil_nlsolve— only exercised by theequilibrium_solve_*solvers, which are not yet reworked/verified for the community object (see CLAUDE.md "Known issues")Notes
max_patch_lifetimesmall (e.g. 30) as the existing tests do.CLAUDE.md(Test baseline / Known issues) for the broader status.