美文网首页
使用maven命令生成EXTENTREPORTS 报告中文乱码问

使用maven命令生成EXTENTREPORTS 报告中文乱码问

作者: 刺猬Hedgehog | 来源:发表于2021-10-18 11:16 被阅读0次

    使用mvn clean test生成的报告如下:


    mixcode.jpg

    解决办法,在pom文件中加上:

                        <forkMode>once</forkMode>
                        <argLine>-Dfile.encoding=UTF-8</argLine>
                        <systemProperties>
                            <property>
                                <name>net.sourceforge.cobertura.datafile</name>
                                <value>target/cobertura/cobertura.ser</value>
                            </property>
                        </systemProperties>
    
    pom.jpg

    重新执行命令并生成报告,查看问题解决。

    相关文章

      网友评论

          本文标题:使用maven命令生成EXTENTREPORTS 报告中文乱码问

          本文链接:https://www.haomeiwen.com/subject/mttnoltx.html