总测试执行时间-并行运行的测试

时间:2019-03-05 01:37:46

标签: java maven unit-testing maven-surefire-plugin

我正在尝试检索[unit]测试的总执行时间(目前为surefire)。 有几个地方说明我们应该解析surefire结果(进行一些文本处理)like here

按顺序运行测试时,生成测试执行时间不是什么大问题,但是当将surefire配置为并行运行测试

时,如何获取测试执行时间

例如,如果我使用的是pom.xml:

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.22.1</version>
                <configuration>
                    <parallel>methods</parallel>
                    <useUnlimitedThreads>true</useUnlimitedThreads>
                    <threadCount>10</threadCount>
                </configuration>
            </plugin>
        <plugin>

我应该如何检索整体[单元]测试执行时间?

可以在结果中添加任何标志吗?

0 个答案:

没有答案
相关问题