如何在Frisby中生成测试概述

时间:2017-03-21 22:52:02

标签: jasmine-node frisby.js

正如frisby官方文件(http://frisbyjs.com/)中所提到的,我正在使用--junitreport,如下所示

 jasmine-node ./demo/validation_spec.js/ --junitreport --output
   C:\Users\Administrator\Documents\script/Reports

生成15个xml文件。正如我在15回合后使用for循环。文件包含以下数据

<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
<testsuite name="Frisby Test:blank action    " errors="0" tests="1" failures="0" time="0.284" timestamp="2017-03-21T13:55:15">
  <testcase classname="Frisby Test: blank action    " name="
    [ POST https://localhost:8443/api/v2/settings/pointwise ]" time="0.282"></testcase>
</testsuite>
</testsuites>

所以我的困难在于我需要读取每个文件以检查测试是否通过。我想要一些像http://maven.apache.org/surefire/maven-surefire-report-plugin/surefire-report.html

这样的概述页面

其中包含有多少测试通过,失败等信息。是否有可能实现。

0 个答案:

没有答案