surefire

Surefire run certain tests in sequence, others in parallel

只愿长相守 提交于 2021-02-07 09:10:43
问题 Is there a way to make certain tests run in in sequence with the surefire plugin for JUnit? Currently it is running all tests in parallel, but some tests are very hard to convert and it would be sufficient if they didn't run in parallel. Here is a part of our pom.xml: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.17</version> <dependencies> <dependency> <groupId>org.apache.maven.surefire</groupId> <artifactId>surefire-junit47<

Surefire rerun failing tests not working

你。 提交于 2021-01-21 08:14:48
问题 I want to rerun a test that I know will fail cause I am trying to test the Surefire parameter for re-running the failing tests. I tried running Maven with these two commands neither of them works as expected -Dsurefire.rerunFailingTestsCount=2 -Dtest=TestThatFails test and -Dsurefire.rerunFailingTestsCount=2 -Dtest=TestThatFails surefire:test Here is part of pom.xml <dependency> <groupId>org.apache.maven.surefire</groupId> <artifactId>surefire-api</artifactId> <version>2.19.1</version> <

Surefire rerun failing tests not working

别来无恙 提交于 2021-01-21 08:14:05
问题 I want to rerun a test that I know will fail cause I am trying to test the Surefire parameter for re-running the failing tests. I tried running Maven with these two commands neither of them works as expected -Dsurefire.rerunFailingTestsCount=2 -Dtest=TestThatFails test and -Dsurefire.rerunFailingTestsCount=2 -Dtest=TestThatFails surefire:test Here is part of pom.xml <dependency> <groupId>org.apache.maven.surefire</groupId> <artifactId>surefire-api</artifactId> <version>2.19.1</version> <

TypeNotPresentExceptionProxy

五迷三道 提交于 2020-08-21 07:01:39
问题 When upgrading from Surefire 2.6 to Surefire 2.13, I get a TypeNotPresentExceptionProxy when running my unit tests. java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:653) at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:460) at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:286) at sun.reflect.annotation.AnnotationParser

Maven with Surefire refuses to run single test method?

♀尐吖头ヾ 提交于 2020-01-29 23:38:47
问题 I've been trying to use Maven with the Surefire plugin to run some JUnit unit tests. Following the instructions provided by Maven and the Surefire folks here: http://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.html My command for maven is as follows: mvn clean -Dtest-group=regression -Dtest=TestClass#testMethod test TestGroup is pulled from an @IfProfileValue statement and has always worked: @IfProfileValue(name = "test-group", values = {"regression"}) However after I

Maven with Surefire refuses to run single test method?

不打扰是莪最后的温柔 提交于 2020-01-29 23:34:44
问题 I've been trying to use Maven with the Surefire plugin to run some JUnit unit tests. Following the instructions provided by Maven and the Surefire folks here: http://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.html My command for maven is as follows: mvn clean -Dtest-group=regression -Dtest=TestClass#testMethod test TestGroup is pulled from an @IfProfileValue statement and has always worked: @IfProfileValue(name = "test-group", values = {"regression"}) However after I

Does Maven Surefire execute test cases sequentially by default?

蹲街弑〆低调 提交于 2020-01-14 09:09:07
问题 This is a follow up to this question which I realized when I dug deeper into my research: Is it reasonable to suppose that the Maven Surefire plugin executes test cases sequentially by default: a test case ends befores the next one starts (I'm not interested in order). I found that you can configure Surefire to run in parallel, does that mean the sequential execution is the default behavior and will likely be in the future? NB : In case you were asking why would I want to force tests to run

Does Maven Surefire execute test cases sequentially by default?

痞子三分冷 提交于 2020-01-14 09:08:12
问题 This is a follow up to this question which I realized when I dug deeper into my research: Is it reasonable to suppose that the Maven Surefire plugin executes test cases sequentially by default: a test case ends befores the next one starts (I'm not interested in order). I found that you can configure Surefire to run in parallel, does that mean the sequential execution is the default behavior and will likely be in the future? NB : In case you were asking why would I want to force tests to run

Maven reporting and site generation for multiple module project

大憨熊 提交于 2020-01-09 10:27:46
问题 I am trying to get project with submodules to test and generate reports correctly, but have got some problems. I have the following project structure: parent |-test1 |-test2 and the pom.xml for parent looks like this: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>parent</groupId> <artifactId

Running single test class or group with Surefire and TestNG

风格不统一 提交于 2020-01-01 04:34:12
问题 I want to run single test class from command line using Maven and TestNG Things that doesn't work: mvn -Dtest=ClassName test I have defined groups in pom.xml, and this class isn't in one of those groups. So it got excluded on those grounds. mvn -Dgroups=skipped-group test mvn -Dsurefire.groups=skipped-group test when config is <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.7.1</version> <configuration> <groups>functest</groups> <