Enable code coverage

Former-commit-id: 9b52247b6e880f15895842e4ff34c15fc99fd1eb
This commit is contained in:
Mathias Bynens
2013-05-29 17:51:57 +02:00
parent 9dd8f62c8a
commit d1fb379a40
10 changed files with 17970 additions and 20 deletions

View File

@@ -246,6 +246,15 @@ require({
});
```
## Unit tests & code coverage
After cloning this repository, run `npm install` to install the dependencies needed for Lo-Dash development and testing. You may want to install Istanbul _globally_ using `npm install istanbul -g`.
Once thats done, you can run the unit tests in Node using `npm test` or `node test/test.js`. To run the tests in Rhino, Ringo, Narwhal, PhantomJS, and web browsers as well, use `grunt test`.
To generate [the code coverage report](http://rawgithub.com/bestiejs/lodash/master/coverage/lodash/lodash.js.html), use `grunt cover`.
## Release Notes
### <sup>v1.2.1</sup>