代码覆盖率测试
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -15,3 +15,5 @@ node_modules
|
|||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|
||||||
benchmark/result*.html
|
benchmark/result*.html
|
||||||
|
|
||||||
|
coverage.html
|
||||||
25
package.json
25
package.json
@@ -4,6 +4,12 @@
|
|||||||
"version": "0.1.2",
|
"version": "0.1.2",
|
||||||
"description": "XSS攻击代码过滤 Remove XSS attack vectors from user-supplied HTML",
|
"description": "XSS攻击代码过滤 Remove XSS attack vectors from user-supplied HTML",
|
||||||
"author": "leizongmin <leizongmin@gmail.com> (http://ucdok.com)",
|
"author": "leizongmin <leizongmin@gmail.com> (http://ucdok.com)",
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Zongmin Lei",
|
||||||
|
"email": "leizongmin@gmail.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git://github.com/leizongmin/js-xss.git"
|
"url": "git://github.com/leizongmin/js-xss.git"
|
||||||
@@ -12,10 +18,25 @@
|
|||||||
"node": ">= 0.6.0"
|
"node": ">= 0.6.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"mocha": ">= 1.2"
|
"mocha": "1.8.2",
|
||||||
|
"blanket": "1.1.5",
|
||||||
|
"browserify": "*",
|
||||||
|
"uglify-js": "*"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha -t 5000"
|
"blanket": {
|
||||||
|
"pattern": "xss/lib"
|
||||||
|
},
|
||||||
|
"test": "mocha --require blanket -R html-cov > coverage.html -t 5000"
|
||||||
|
},
|
||||||
|
"licenses": [
|
||||||
|
{
|
||||||
|
"type": "MIT",
|
||||||
|
"url": "https://raw.github.com/leizongmin/js-xss/master/MIT-License"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/leizongmin/js-xss/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/leizongmin/js-xss",
|
"homepage": "https://github.com/leizongmin/js-xss",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
Reference in New Issue
Block a user