feat(justfile): add classify-fixtures recipe (MK-15) #33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/justfile-classify-fixtures-MK-15"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes MK-15. Parent: MK-5. Follow-up to MK-14.
What this does
Adds a
just classify-fixturesrecipe that replaces the ad-hoc shell loop used at the end of every classifier tuning iteration (MK-14 eta tuning, MK-9 graphic class, future tunes). The loop is:./target/release/monkey.tests/fixtures/classify/one level deep. Each immediate subdirectory is the expected class label.monkey image classify <file>, take the first tab-separated field, and compare to the parent directory name.MISS <class>/<basename> -> <got>and a<class>: <hits>/<total>per-class summary.The fixture tree under
tests/fixtures/classify/is gitignored (per MK-14), so the recipe degrades gracefully on a fresh clone: prints a one-line hint that points at MK-14 and exits 0, short-circuiting the release build too.Test plan
just --listshowsclassify-fixturesunder a newvalidationgroup with the description above.just classify-fixtureson a fresh clone with no fixtures printsno fixtures at tests/fixtures/classify; see MK-14 for the expected layoutand exits 0 (no release build kicked off, no panic, noerror: ...).tests/fixtures/classify/tree runsjust classify-fixturesand confirms per-class lines + miss list match prior ad-hoc loop output.Acceptance criteria
just classify-fixturesexists and follows the existing Nushell-recipe style.tests/fixtures/classify/<class>/, comparing the emitted class to the directory name.<class>: <hits>/<total>lines plus one miss line per failure printed to stdout.error: ...).justfileblock documents the gitignored layout and links MK-14 in the recipe comment.Cargo.toml, no changes to source.