当测试用例失败时,jest-html报告器不会生成结果

时间:2018-04-18 11:15:46

标签: windows jestjs jasmine-reporters

如果测试用例失败并且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"
    }

1 个答案:

答案 0 :(得分:0)

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