通常,您将向运行不同测试集的Maven配置添加一个配置文件:
用mvn -Pintegrationtest install运行
<profile> <id>integrationtest</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>-client -Xmx896m -XX:MaxPermSize=192m</argLine> <forkMode>once</forkMode> <includes> <include>***Test.java</include> <include>***IntTest.java</include> </includes> <excludes> <exclude>***SeleniumTest.java</exclude> </excludes> </configuration> </plugin> </plugins> </build> <activation> <property> <name>integrationtest</name> </property> </activation> </profile>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)