Added more-legitimate tests + code coverage #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I added a better test suite that's more automated than having to read console.log's to see if something is or isn't working. The tests can be run with either of the following:
I also added configuration for running them automatically on TravisCI (so that future PR's will report test results + coverage). For this, you'll need to sign up and enable tinycache on TravisCI and Coveralls.io (both are free). For a demo, checkout the naturalatlas fork of tinycache.
This PR also includes a bugfix for
misses()– it wasn't reporting misses caused by non-existent keys.Thanks, great PR. I signed up for Travis and Coveralls.