• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

trotzig / diffux / 104 / 1
99%
master: 99%

Build:
DEFAULT BRANCH: master
Ran 06 Feb 2014 08:29PM UTC
Files 19
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Feb 2014 08:12PM UTC coverage: 98.322% (+0.04%) from 98.282%
2.0.0

push

travis-ci

lencioni
Use translucent before-image + bright color for diff

Previously we were generating a diff image that only contained grayscale
pixels that were different between the two images. While this was
effective at helping us spot that there were differences, we spent a lot
of time looking at the three images to figure out where the differences
actually were.

To help remedy this, we believe that it makes sense to render a faded
version of the "before" image (baseline) underneath the diff pixels. To
make sure that the diff pixels aren't lost on top of this translucent
image, we are rendering them in a bright pink color. We chose bright
pink because it is very noticeable and also unlikely to dominate most
snapshots.

We set the opacity of the diff pixels to be at minimum double the
opacity of the translucent image. This will help even the smallest
differences actually be noticeable.

At the same time, I changed the magic array-like access on the ChunkyPNG
images to use `get_pixel` and `set_pixel` because these methods do the
same thing as the magic array-like accessors but without checking of the
bounds. Because we are in a tight loop and because we have already
defined the bounds of the image, this should improve the performance of
the diffs without sacrificing any robustness.

Change-Id: I964ac3af1

293 of 298 relevant lines covered (98.32%)

17.27 hits per line

Source Files on job 104.1 (2.0.0)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 104
  • Travis Job 104.1
  • 57fc0668 on github
  • Prev Job for 2.0.0 on master (#103.1)
  • Next Job for 2.0.0 on master (#105.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc