代码之家  ›  专栏  ›  技术社区  ›  Akanksha Gaur

角形cobertura文件重命名的笑话

  •  0
  • Akanksha Gaur  · 技术社区  · 7 年前

    我试图在我的角度应用程序中整合Jest。根据jest配置,我可以配置报告器,但它不允许我设置Cobertura的输出文件名。要配置其他自定义报告器,我可以使用reporters字段,它们允许提供额外的配置。 如何将我的文件命名为科伯图拉.xml.

    coverageReporters: [
            "text",
            "lcov",
            "cobertura"
        ],
        reporters: ["default", "jest-junit"],
    
    0 回复  |  直到 7 年前
        1
  •  0
  •   Rafael Pizao    7 年前

    我也有同样的问题!

    我使用自定义库解决问题(正如您自己所提到的),我相信JS/Regex是解决方案或类似问题的方法。

    https://www.npmjs.com/package/jest-sonar-reporter

    更新

    在撰写报道报道时,Jest使用的记者姓名列表。 任何伊斯坦布尔记者都可以使用。

    coverageReporters [array<string>] #
    Default: ["json", "lcov", "text"]
    

    https://jest-bot.github.io/jest/docs/configuration.html

    推荐文章