home/categories/education/gridaco-grida-agents-skills-cg-reftest-skill-md
educationdocumentation

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.

gridaco
maintainer
gridaco
更新於 3/23/2026
星標
2443
分支
131
quick start

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.

安裝
$ install --globalskills.sh
使用

安裝後,您可以透過在終端機執行以下指令來使用此技能:

skills use cg-reftest