ftlabs / big-ft

A view of the FT homepage designed for non-interactive video walls and billboards
23 stars 6 forks source link

Server tests #38

Closed JakeChampion closed 8 years ago

JakeChampion commented 8 years ago

This PR adds some tests for the lib modules used in the application. I've also added code coverage to the output of the server-tests gulp task, which looks like this:

{ lines: { total: 577, covered: 26, skipped: 0, pct: 4.51 },
  statements: { total: 601, covered: 26, skipped: 0, pct: 4.33 },
  functions: { total: 89, covered: 0, skipped: 0, pct: 0 },
  branches: { total: 180, covered: 0, skipped: 0, pct: 0 } }

I also added the ability for coverage reports to be written and sent to Code Climate, if we would like to use it. Here is an example of what that would look like - https://codeclimate.com/github/ftlabs/big-ft/coverage

seanmtracey commented 8 years ago

LGTM