cg-reftest
Guides design and review of computer-graphics rendering tests for the cg crate. Covers the distinction between reftests (independent oracle), golden/snapshot regression tests (previously accepted output), and observation-based probe tests (pixel/color assertions without vision). Use when adding, reviewing, or debugging visual comparison tests, pixel diffs, golden image generators, SVG reftest suites, or designing fixtures that can be verified programmatically by probing pixel values. Relevant paths: crates/grida-canvas/tests/, crates/grida-canvas/goldens/, crates/grida-canvas/examples/golden_*, crates/grida-dev/src/reftest/, fixtures/test-svg/, docs/wg/feat-svg/testing.md.
Installation and usage
Guides design and review of computer-graphics rendering tests for the cg crate. Covers the distinction between reftests (independent oracle), golden/snapshot regression tests (previously accepted output), and observation-based probe tests (pixel/color assertions without vision). Use when adding, reviewing, or debugging visual comparison tests, pixel diffs, golden image generators, SVG reftest suites, or designing fixtures that can be verified programmatically by probing pixel values. Relevant paths: crates/grida-canvas/tests/, crates/grida-canvas/goldens/, crates/grida-canvas/examples/golden_*, crates/grida-dev/src/reftest/, fixtures/test-svg/, docs/wg/feat-svg/testing.md.
安裝後,您可以透過在終端機執行以下指令來使用此技能:
skills use cg-reftest