Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Hook YUI loader for yui3 tests to get coverage; note that this only w…

…orks with istanbul coverage
  • Loading branch information...
commit b027937818fcf4fb3f155d76a3cadfd95f6ecf9b 1 parent 7b20113
@gotwarlost authored
Showing with 4 additions and 2 deletions.
  1. +3 −1 lib/coverage/index.js
  2. +1 −1  package.json
View
4 lib/coverage/index.js
@@ -142,8 +142,10 @@ mix(Istanbul, {
excludes: excludes
}, function (err, matchFn) {
if (err) { return callback(err); }
+ /*jslint nomen: true */
istanbul.hook.hookRequire(matchFn, transformFn, {
- verbose: that.opts.verbose
+ verbose: that.opts.verbose,
+ postLoadHook: istanbul._yuiLoadHook(matchFn, transformFn, that.opts.verbose)
});
callback();
});
View
2  package.json
@@ -2,7 +2,7 @@
"name":"ytestrunner",
"author":"Krishnan Anantheswaran <kananthmail-github@yahoo.com>",
"description":"Run YUI tests for node packages using npm test with support for saving test results, coverage and more. Supports YUITest as well as YUI3 style tests.",
- "version":"0.3.2",
+ "version":"0.3.3",
"repository":{
"type":"git",
"url":"git://github.com/gotwarlost/ytestrunner.git"
Please sign in to comment.
Something went wrong with that request. Please try again.