maven-surefire-plugin Questions
1
Solved
When disabling tests with a @Disabled* / @Enabled* annotation, those tests will be skipped as expected, but the surefire test runner also shows a [WARNING] in front of the result line for the affec...
Blenny asked 18/4, 2021 at 21:55
2
I have 2 test suites. One can be run in parallel and the other must be run sequentially. See definition below.
What I see is that only the second one runs.
I tried to define 2 plugins. Didn't wor...
Centering asked 16/9, 2015 at 10:4
2
I have an application here where the unit tests are written in a way that they cannot be run in parallel.
When running the tests with maven some of them fail for that reason.
I could verify that t...
Zackzackariah asked 3/7, 2018 at 7:39
1
I upgraded my springboot H2 dependency from 1.4.200 to 2.0.202 , but getting the below exception . Could you please help.
Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException:
Syntax error in SQL s...
Tympanum asked 21/2, 2022 at 7:16
3
Solved
When trying to run a NetBeans project, I get the following error message:
Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.10:test
(default-test) on project MyNetBeansPr...
Humanitarian asked 2/2, 2020 at 22:3
4
Solved
Background: we are setting current project version as system environment:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artif...
Became asked 6/3, 2018 at 20:45
3
Solved
I'm trying to log all DEBUG messages to console during testing in maven. For this purpose I created a file src/test/resources/log4j.properties, which is going to override the configuration I alread...
Ruinous asked 5/11, 2010 at 13:59
5
What is the use of the Maven Surefire Plugin?
I can not find a proper example.
Brathwaite asked 5/10, 2015 at 6:21
5
Solved
Running a maven build using java 11, the build issues the following warning while running tests:
[WARNING] Corrupted STDOUT by directly writing to native stream in forked JVM 1. See FAQ web page an...
Oratorian asked 11/4, 2019 at 12:32
9
We have a hundreds of tests defined for our integration-test phase lifecycle in maven, and they take a long time to finish.
What I want to do is run just one test in the integration-test. I tried ...
Berglund asked 21/5, 2009 at 19:39
12
I am working on a rather complex java project with many dependencies and many unit tests.
I am using java 1.6.0_65 on mac (mavericks) with maven 3.0.5 with maven-surefire-plugin:2.16 running in se...
Mana asked 17/12, 2013 at 19:12
1
I'm using the maven-surefire-plugin with junit 4.1.4. I have a unit test which relies on a 3rd party class that internally uses static { ... } code block to initiate some variables. For one test, I...
Eastward asked 4/8, 2021 at 20:46
2
I'm trying to build an open source project in docker and want to save time spent on builds, so I tried using mvn dependency:go-offline, which does download maven-surefire-plugin itself.
Running mv...
Shon asked 21/11, 2019 at 10:36
2
I have some Unit Tests (classes *Test.java in src/test folder, executed by Surefire Plugin) and some other Integration Tests (classes *IT.java in src/it folder, executed by Failsafe Plugin): .xml a...
Garganey asked 27/3, 2017 at 15:40
1
I have a maven project and I would like to get a list of all the test classes and their file paths, without having to execute all the tests.
After I run "mvn test", the only files that I have und...
Tyro asked 18/5, 2018 at 18:9
7
Solved
I use Docker and https://github.com/fabric8io/docker-maven-plugin for my integration tests.
On my Windows 10 (after updating to Windows 10 1709) machine I faced the following error with my Maven 3...
Sacrificial asked 19/10, 2017 at 14:2
4
Solved
I have the default src/test/java folder for our unit tests. A separate folder src/integration/java is available for the integration tests.
I configured the maven-surefire-plugin to execute the uni...
Norean asked 13/4, 2012 at 9:42
4
I'm encountering a very weird problem with Spring (3.0.1.RELEASE), TestNG (5.11) and Maven Surefire (2.5).
I have a test class that extends a Spring helper class for testNG so that the test context...
Nuthatch asked 12/4, 2010 at 4:29
1
Initially I had one unique module-info in the next folder:
src/main/java/module-info.java.
I was able to run the tests successfully.
Now I need to overwrite the module-info because I need to add so...
Oxyacid asked 15/3, 2021 at 16:13
2
Recently got a new job, I'm working on a Maven and Micronaut project - I'm new to Micronaut, and if you're not familiar, its an alternative to Spring.
Using this as a guide: https://www.baeldung.co...
Jedthus asked 12/2, 2021 at 10:53
3
Solved
I'm trying to migrate a project to Java 12, with --enable-preview.
I added --enable-preview in compiler settings:
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
&l...
Mime asked 22/3, 2019 at 16:19
7
Solved
I've a Maven build in which I use the SureFire plugin to run some unit tests, and the FailSafe plugin to run some integration tests. I would like a way to run just the FailSafe plugin's tests.
It'...
Hazardous asked 7/7, 2011 at 14:36
1
I encountered with the problem, when I ran mvn test. Here's a part of the output:
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] There ...
Godwin asked 19/2, 2019 at 8:13
1
Solved
I'm upgrading java version in our production code from java 8 to java 11.
I have to add the below JDK module configuration in the application java start command due to usage of third party librarie...
Reamy asked 19/11, 2020 at 21:48
2
Solved
I'm using "mvn test" to run cucumber tests, but when I try to pass options on the command line with
-Dcucumber.options=..., the options are ignored and the ones specified in @CucumberOpti...
Blok asked 5/11, 2020 at 19:27
© 2022 - 2024 — McMap. All rights reserved.