【文件属性】:
文件名称:junit-xml-parser
文件大小:10KB
文件格式:ZIP
更新时间:2021-06-22 07:22:33
JavaScript
junit-xml-解析器
安装
npm instal junit-xml-parser [--save]
用法
如果你这样做:
var parser = require ( 'junit-xml-parser' ) . parser ;
parser . parse ( '<...junit xml...>' ) . then ( function ( results ) { ... } ) ;
结果看起来有点像这样:
'suite' : {
'name' : 'errors happened' ,
'time' : 156.71 ,
'summary' : {
'tests' : 1 ,
'failures' : 0 ,
'skipped' : 0 ,
'errors' : 1
} ,
'tests' : [
{
【文件预览】:
junit-xml-parser-master
----.jshintrc(407B)
----Gruntfile.js(1024B)
----lib()
--------junit-xml-parser()
--------junit-xml-parser.js(118B)
----.npmignore(0B)
----.travis.yml(131B)
----test()
--------setup_test.js(340B)
--------junit-xml-parser()
--------support()
----README.md(2KB)
----.gitignore(112B)
----WHITESPACE.md(97B)
----package.json(1011B)