Spec snapshots
Verification
Reference comparisons
Specifications
On this page
Export
Scope
Compiled specifications for every geom, feature, statistics helper, and gallery example, against committed snapshots.
References
- Reference
- Committed snapshots in tests/.pest/snapshots (222 files)
Data
- Inputs
- Bundled mpg, mtcars, economics, and faithful datasets; the gallery catalog in examples/catalog.php.
Method
scripts/evidence-tests.php runs the Pest suite and records each test that compares a specification with its snapshot. A changed specification fails until its snapshot is reviewed and updated.
- Check
- Expected values and invariants of the package
- Recorded
- 2026-11-02, PHP 8.5.11, Debian GNU/Linux 13 (trixie) (aarch64), commit b9272c6
Tolerances
exact equality
Applies to: Specification JSON
Inline data cut to three rows and a count
x: package value; r: reference value.
Results
5 comparisons: 5 pass, 0 fail, 0 skipped.
| Case | Quantity | Criterion | Values | Status |
|---|---|---|---|---|
| ExamplesTest | builds a valid spec for every gallery example | exact equality | 46 | pass |
| FeaturesTest | compiles each feature to a valid Vega-Lite spec | exact equality | 65 | pass |
| GeomsTest | compiles each geom to a valid Vega-Lite spec | exact equality | 52 | pass |
| ParityTest | compiles each ggplot2 feature to a valid Vega-Lite spec | exact equality | 40 | pass |
| StatsTest | builds valid statistics charts | exact equality | 19 | pass |
Reproduction
From the repository root
composer install
php scripts/evidence-tests.php
- Raw record
- site/verifications/spec-snapshots.json
- Full results
- scripts/evidence-tests.php