maven-surefire-plugin Questions
1
I am using the Java implementation of Selenium WebDriver (version 2.53.0) to run some automated tests against a web application. The tests are written in Behaviour Driven Testing format using the J...
Niacin asked 8/7, 2016 at 11:15
2
I put the surefire and cobertura plugins in my pom.xml, but I can't configure them to work fine. Or cobertura doesn't run or the tests are executes twice.
So, how could I configure the plugins for...
Hutchison asked 17/2, 2012 at 1:55
0
I am using surifire, failsafe, mockito and powermock. Where ever I tried I got like power mock is not support for Java 11.
I have tried with the latest version of surefire also but it throws excep...
Charcuterie asked 24/1, 2019 at 15:21
1
My project structure as below during the integration test.
Project-A
|_conf (contains the configuration files)
|_lib (Contains the all dependencies)
|_pom.xml
|_target
|_test (Contains the i...
Tillietillinger asked 11/1, 2019 at 12:10
3
Solved
I read Maven Failsafe plugin is designed specifically to run integration tests. Currently I'm working on a multi-module project and integration tests are in its own separate module, written in Test...
Contreras asked 18/2, 2012 at 6:7
4
I am creating a sample maven project in java and facing this exception when I specify test in goals, it's giving Build Error. But clean, compile, test-compile are working fine. i.e results successf...
Reinaldoreinaldos asked 30/6, 2016 at 7:44
0
I have the following parent POM:
<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 ...
Klemperer asked 20/9, 2018 at 21:7
1
Solved
I've been working on this for hours, and every solution I've tried that I've found online makes no difference.
I have a project which is written in Kotlin. I have the Kotlin plugin installed on my...
Sericin asked 21/8, 2018 at 3:37
1
I have a maven project that uses the surefire plugin for unit testing. Currently the testing is split into two executions default-test and unitTests, both bound to the test goal, as follows:
<p...
Liguria asked 31/3, 2014 at 0:25
3
Solved
i have a test Class lets call it TestSomething, and a Test Object lets call this one SomeObject.
Now i need this Object in every Single Test new this means that i have in my Code a @BeforeEach th...
Harken asked 17/7, 2018 at 13:14
10
Solved
I am using maven with the jacoco plugin to generate code coverage metrics. I am having some difficulty in configuring the surefire plugin with the java options required by the jacoco plugin. I've s...
Terraqueous asked 21/4, 2014 at 2:54
0
I'm taking a course where the homework is executed using Maven, and the .pom file is provided with the project. The assignment requires about 1.5gb of memory to process. However when providing more...
Intercalate asked 27/6, 2018 at 16:57
0
Environment
OSX 10.13.5
Java 10.0.1 2018-04-17
Apache Maven 3.5.2
Spring Boot 2.0.3.RELEASE
Maven Surefire plugin 2.22.0
Issue
I have a test which reliably passes:
public class TransformerTes...
Threonine asked 26/6, 2018 at 17:38
3
Solved
I would like to configure the maven sure fire plugin to start the unit testing jvm with the argument for a java agent. The agent jar file is being obtained from maven central so I want maven to aut...
Perfume asked 7/11, 2012 at 7:4
1
For no apparent reason, and without any relevant changes to the code, my DB surefire tests are hanging after a specific test.
The console output indicates that test 50 completes successfully and th...
Schematism asked 22/5, 2018 at 18:25
3
Solved
I have a JUnit test class in my project which is updated incrementally - I add tests every few weeks and sometimes modify the tests' code.
Surprisingly, when I run the test class using eclipse JUn...
Gynaecology asked 3/4, 2016 at 11:5
1
Solved
I want to use JUnit 5 and the TestExecutionListener interface to do some clean up after the test run is done. The whole project is using JUnit Jupiter, no Vintage involved.
In Maven Surefire it wa...
Elis asked 20/4, 2018 at 8:35
1
I 'm using maven-sure fire plugin to execute tests and Jacoco plugin to generate the coverage reports. Jacoco does't provide coverage reports and instead fails with the debug log as shown here unde...
Delois asked 30/3, 2018 at 21:3
1
Solved
I followed this blog post to set up a Maven build with separate unit and integration tests, using the @Category annotation.
For the most part this works: tests marked as @Category(IntegrationTest....
Splanchnology asked 16/3, 2018 at 8:25
2
I would like to define a property/variable in Logback (1.2.1) that:
Has a default value
Can be overriden via a Java command-line option
Basically, during development, I would like Maven to be i...
Portal asked 8/6, 2017 at 13:1
3
Solved
Can anyone let me know how can I get the time taken by each of the unit tests in a unit test class in a single file via maven-surefire? I have seen my target/surefire-report it has files for each t...
Shelve asked 24/8, 2017 at 6:19
4
I read in maven-surefire-plugin and default locale that Maven runs tests forked and thus might lose any locale you might have set.
Is there a way to run tests in Maven in forked mode and still re...
Rosinweed asked 17/1, 2012 at 21:21
12
Solved
Right now I have both type of tests but when I say "mvn test" it only executes TestNG tests and not Junit. I want to execute both one after another. Any Idea ?
Fults asked 5/8, 2009 at 12:11
1
I have a multi-module maven project with three modules core, utils and test-utils
Core has the following dependencies definition
<dependency>
<groupId>my.project</groupId>
<...
Leesa asked 6/11, 2017 at 21:54
1
Solved
In my project I have surefire as well as failsafe tests.
If I run with mvn clean install -DskipTests then both kinds of tests are skipped.
If I try to run a single failsafe test using -Dit.test=T...
Cartercarteret asked 12/10, 2017 at 14:42
© 2022 - 2024 — McMap. All rights reserved.