millermedeiros / amd-utils

modular JavaScript utilities written in the AMD format
http://millermedeiros.github.com/amd-utils
142 stars 11 forks source link

integrate some kind of code coverage test #111

Closed millermedeiros closed 11 years ago

millermedeiros commented 11 years ago

that way we make sure all methods have specs and that they are being tested properly (will be good for pull requests).

the main issue is that to make the tests work on node.js (#110) we need to load the specs using r.js and that breaks the way yahoo/istabul works (they add some hooks to the node.js native require) - will probably need to add a pretest command to instrument all modules and write them to a temp folder (or save as *-inst.js) before running the tests.

will investigate how istanbul works, maybe we can monkey-patch it to support RequireJS.