UnitTestDesign.jl
Automated unit test coverage with fewer test cases using all-pairs and other covering arrays.
Install / Use
/learn @adolgert/UnitTestDesign.jlREADME
UnitTestDesign
Chooses function arguments to make unit testing faster and more effective.
This package generates parameter values for unit tests, chooses software configurations for integration testing, or generates test datasets. If the system-under-test takes a long time to run or has many possible parameters or many possible values each parameter can take, this library chooses combinations of parameters that are more likely to find faults in the code. It assumes that code will break when there are interactions between different parameter choices, so it generates test data that covers all possible interactions among two parameters, the all-pairs algorithm, or three parameters, the all-triples algorithm, or higher-order combinatorial interactions.
Installation
pkg> add UnitTestDesign
Example
test_set = all_pairs(
[1, 2, 3], ["low", "mid" ,"high"], [1.0, 3.7, 4.9], [:greedy, :relax, :optim]
)
for test_case in test_set
test_result = function_under_test(test_case...)
@test test_result == known_result(test_case)
end
Related Skills
gh-issues
347.0kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Writing Hookify Rules
107.8kThis skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
