java - maven的单元测试如何设置为单线程单进程串行执行?
PHPz
PHPz 2017-04-18 10:37:45
0
2
440
PHPz
PHPz

学习是最好的投资!

reply all(2)
PHPzhong

You still have to document at the critical moment. . .

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.19.1</version>
        <configuration>
            <forkCount>1</forkCount>    //虚拟机的最大线程数
            <reuseForks>false</reuseForks>    //虚拟机是否可以重用
        </configuration>
    </plugin>
左手右手慢动作

mvn-T1 How about?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template