example-sonar-js-mocha-xunit

时间:2021-07-08 01:16:51
【文件属性】:
文件名称:example-sonar-js-mocha-xunit
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-08 01:16:51
JavaScript 示例 sonar-js-mocha-xunit 使用 Mocha 和 xunit 格式在 Javascript 项目上测试单元测试报告的声纳分析的示例项目。 先决条件: 安装了 npm 和 grunt-cli 安装: 安装 配置: 您可以在 grunt/sonar.js 文件中编辑您的声纳服务器配置。 跑步: XUNIT_FILE=TEST-xunit.xml 咕噜声声纳 您可以运行简单的测试而无需在 Sonar 上发布: grunt test:xunit-file # 生成 xunit 文件 (xunit.xml) grunt test:xunit # 在标准输出上生成 xunit 数据 grunt test:sonar # 为 Sonar 生成具有唯一类名的 xunit 数据
【文件预览】:
example-sonar-js-mocha-xunit-master
----Gruntfile.js(293B)
----src()
--------foo.js(86B)
--------toto()
----test()
--------toto()
--------bar-spec.js(285B)
----README.md(636B)
----.gitignore(21B)
----grunt()
--------clean.js(75B)
--------sonar.js(737B)
--------mochaTest.js(1KB)
----package.json(437B)

网友评论