【问题标题】:jest-html reporter not generating result when there are failing test cases当测试用例失败时,jest-html 报告器不生成结果
【发布时间】:2018-04-18 11:15:45
【问题描述】:

当有失败的测试用例和includeFailureMsg=true时不生成index.html/test报告

package.json

    "name": "test",
    "jest": {
            "transform": {},
            "verbose": true,
            "bail": true,
            "testMatch": ["path"],
            "testResultsProcessor": "./node_modules/jest-html-reporter"
       },
        "jest-html-reporter": {
         "pageTitle": "Your test suite",
         "outputPath": "test-report.html",
         "includeFailureMsg": true
   },
    "dependencies": {
            "jest-html-reporter": "^2.3.0"
    }

【问题讨论】:

    标签: windows jestjs jasmine-reporters


    【解决方案1】:

    通过使用 jest-stare 包。我能够解决我的问题,希望对其他人有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-10-18
      • 2013-06-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-07
      • 2018-04-05
      • 1970-01-01
      相关资源
      最近更新 更多