From 3445338ad5b4353ee0fc168706bb85411ea3105f Mon Sep 17 00:00:00 2001 From: cgole Date: Wed, 14 Aug 2013 13:17:10 -0700 Subject: [PATCH] Add code coverage using blanket.js --- package.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 559a882..12a3685 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,17 @@ "description": "MySQL adapter for Loopback Data", "main": "index.js", "scripts": { - "test": "make test" + "test": "make test", + "blanket": { + "pattern": "//^((?!(node_modules|test)).)*$/" + }, + "coverage": "mocha -r blanket -R html-cov > coverage_loopback-connector-mysql.html" }, "dependencies": { "loopback-datasource-juggler": "git+ssh://git@github.com:strongloop/loopback-datasource-juggler.git", "mysql": ">= 2.0.0-alpha8", - "async": "latest" + "async": "latest", + "blanket": "latest" }, "devDependencies": { "coffee-script": "latest",