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

chartjs / Chart.js / 3032
97%

Build:
DEFAULT BRANCH: master
Ran 05 Mar 2017 04:52PM UTC
Jobs 1
Files 42
Run time 2s
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

pending completion
3032

push

travis-ci

tannerlinsley
Introduce unit test based on image comparison (#3988)

Attempt to make easier the creation of unit tests that check the drawing output. Until now, this was done by checking calls on a 'fake' context, which is hard to maintain (need to update pixel values by hands) and also not reliable when optimizing code (i.e. different calls sequence but same result).

As of now, it's possible to define 'auto' tests based on JSON/PNG fixtures: chart is generated from the JSON file and compared to the associated PNG image. The image diff is done using `pixelmatch`. As an example (and in preparation of the `filler` plugin), add auto tests for the line element `fill` options.

4267 of 4642 relevant lines covered (91.92%)

834.31 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3032.1 05 Mar 2017 04:52PM UTC 0
91.92
Travis Job 3032.1
Source Files on build 3032
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3032
  • 1ca0ffb5 on github
  • Prev Build on master (#3028)
  • Next Build on master (#3060)
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