Commit 7bf6d00
authored
fix: message leak, dead report tests, gem packaging (3.0 readiness backlog) (#234)
Three independent beta2-review backlog items.
1. Vips::Image leaked into failure messages. ComparisonResult#to_h merged
the whole meta hash, including the vips-only :diff_mask image object, so
a failing assertion printed "diff_mask":"#<Vips::Image:0x...>". #to_h now
excludes it; the object stays reachable via #diff_mask.
2. test/integration/report_screenshot_test.rb skipped all five tests unless
RECORD_SCREENSHOTS -- the mode that records baselines rather than
verifying them. Baselines existed only for macos/cuprite, so on the only
CI platform (linux) there was nothing to compare against. Deleted, along
with the orphan baselines. The HTML reporter keeps 18 unit tests, and
`rake report:sample` already produces a sample report for eyeballing.
3. The gemspec shipped gems.rb, Rakefile and itself while omitting README.md,
leaving a dead ../README.md link in the packaged docs. Replaced the
deny-list regex with an allow-list: lib/, docs/, README, LICENSE, CHANGELOG.1 parent 5f3fee6 commit 7bf6d00
9 files changed
Lines changed: 23 additions & 82 deletions
File tree
- lib/snap_diff
- test
- fixtures/app/doc/screenshots/macos/cuprite/html_report
- integration
- unit/reporters
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | | - | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
44 | 60 | | |
45 | 61 | | |
46 | 62 | | |
| |||
0 commit comments