How to us Maven PDF Plugin to generate PDF from Surefire Report?

后端 未结 2 1822
隐瞒了意图╮
隐瞒了意图╮ 2021-01-06 21:17

after running my JUnit tests I use the Maven Surefire Report plugin (http://maven.apache.org/plugins/maven-surefire-report-plugin/) to generate a HTML test report. This resu

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-06 21:33

    From the documentation of maven pdf plugin, the plugin needs a file that contains the DocumentModel of the PDF to generate. It is by default src/site/pdf.xml, which is why the plugin fails when it does not find this file.

    The plugin is intended to generate the pdf version of the report generated by the maven site plugin. As such, it generates the pdf versions of all reports for the project, which would include the surefire-report, if configured.

提交回复
热议问题