cullophid / date-fp

Functional programming date manipulation library
121 stars 17 forks source link

Add istanbul code coverge tool #14

Closed svozza closed 8 years ago

svozza commented 8 years ago

Added Istanbul for code coverage stats and added the requisite test cases to turn this:

=============================== Coverage summary ===============================
Statements   : 99.47% ( 560/563 )
Branches     : 96.12% ( 124/129 ), 23 ignored
Functions    : 100% ( 180/180 )
Lines        : 99.63% ( 536/538 )
================================================================================

Into this:

=============================== Coverage summary ===============================
Statements   : 100% ( 577/577 )
Branches     : 100% ( 129/129 ), 23 ignored
Functions    : 100% ( 185/185 )
Lines        : 100% ( 552/552 )
================================================================================

I wasn't sure whether to make npm test run code coverage and fail if coverage went below 100 percent though so I just added a new script called test:coverage. Thoughts?

cullophid commented 8 years ago

Lets try it, If there is a problem well look at it :)