mix excessibility.compare (Excessibility v0.5.13)
View SourceCompares current snapshots against the baseline and prompts for resolution.
For each snapshot that differs from its baseline, this task:
- Creates
.good.html(baseline) and.bad.html(new) files - Opens both in your browser for comparison
- Prompts you to choose which version to keep
- Updates the baseline with your choice
Usage
# Interactive mode - prompts for each diff
$ mix excessibility.compare
# Keep all baseline (good) versions
$ mix excessibility.compare --keep good
# Accept all new (bad) versions as baseline
$ mix excessibility.compare --keep badOptions
--keep good- Automatically keep all baseline versions (no changes)--keep bad- Automatically accept all new versions as baseline
Workflow
- Run your tests to generate snapshots
- Run this task to compare against baseline
- Review diffs and choose which to keep
- The selected version becomes the new baseline