Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [maven-surefire-plugin]

The Surefire Plugin is used during the test phase of the build lifecycle to execute the unit tests of an application. It is commonly used in continuous integration.

maven-surefire-plugin
0 votes
0 answers
7 views

Why do GitHub action jobs block when running maven-surefire-plugin?

I am trying to parallelize the execution of tests using the maven-surefire-plugin in a GitHub action. The action looks like this: jobs: build: strategy: matrix: os: [ubuntu-latest, ...
NeverEver's user avatar
0 votes
1 answer
18 views

I am Dockerizing my Spring boot application and i am getting connection refusal errors

Here is my project https://github.com/haseeb1988/spRegistration.git // Creating network docker network create -d bridge sp-sql-net // build images docker build -t springboot_website . //run container ...
mohammad haseeb's user avatar
0 votes
1 answer
38 views

Error while running mvn clean install: Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr (generate-scr-descriptor)

I receive the following error when trying to run command mvn clean install: [ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr (generate-scr-descriptor) on project companyname-...
aniketh-avula's user avatar
-1 votes
2 answers
49 views

NoClassDefFoundError exception after updating to the latest maven-surefire-plugin and latest junit5

I've got the following issue while I've been trying to use latest version of the JUnit5 (5.10.3) and latest version of the maven-surefire-plugin (3.3.0). Caused by: org.apache.maven.surefire.booter....
mnlaptev's user avatar
  • 111
0 votes
0 answers
21 views

Maven Test runs indefinitely on a Test Suite which executes fine in Junit4

I recently mavenized few old projects. When I am trying to build caffeine tests project with maven build, the test suite hangs when it executes the first test. I debugged the application, it adds all ...
Vishnu Ramesh's user avatar
0 votes
0 answers
39 views

Want to run command mvn test with a specific testng.xml file

This is my plugin in POM.xml file: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> ...
Davit Ebralidze's user avatar
0 votes
0 answers
57 views

MavenProject coming null inside ITestContext

My end goal here is to read all pom.xml from different modules from a custom Testng listener which is present in one IntegrationTests module. Expected behavior iTestContext.getAttribute("maven....
Mehul Parmar's user avatar
0 votes
0 answers
27 views

Maven surefire overwrites the logs for flaky tests on rerunFailingTestsCount

I'm using maven-surefire-plugin to rerunFailingTests for the failing tests. If the test fails in first attempt and pass on the later attempts, the logs(*.txt, *-output.txt) from the /target/surefire-...
KGP's user avatar
  • 350
2 votes
1 answer
89 views

Cannot run explicitly tagged test only in Kotest

I have a spring boot project which uses kotlin version 1.7.0. My pom looks something like below. <properties> <kotlin.version>1.7.0</kotlin.version> ... </<...
Risalat Zaman's user avatar
0 votes
0 answers
38 views

getting error : Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test on project dockerProject_sdet2

pom.xml: 4.0.0 <groupId>dockerProject_sdet2</groupId> <artifactId>dockerProject_sdet2</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</...
samir 's user avatar
  • 11
1 vote
1 answer
59 views

mvn command to skip surefire tests is not working

I'm running this command: mvn clean verify -U -Dskip.surefire=true -Dskip.integration=true -Pwipedb but it gives me this error: Unknown lifecycle phase ".surefire=true". You must specify a ...
Punith Kumar P R's user avatar
1 vote
2 answers
577 views

Which version of maven-surefire-plugin is compatible with spring-boot 3.3

Getting this error: Error: class missing: org/apache/maven/plugin/surefire/log/api/ConsoleLogger I tried other versions of surefire plugin 3.0.0-M5 but it did not work either, getting same error ...
devoverflow's user avatar
1 vote
0 answers
52 views

Tests execution order: JUnit 5 vs Maven Surefire Plugin documentation

I know that tests should not rely on the order in which they are executed but sometimes bad things happen. I have just fixed a Maven project whose tests were passing when executed by Jenkins but not ...
Pino's user avatar
  • 9,093
1 vote
1 answer
112 views

Log4j2 RoutingAppender with ListAppenders across Multiple Threads

(This is a follow-up from my original question: Log4j2 Custom Appender in Maven Surefire: Possible to Reuse Across Threads?) I'm attempting to unit test the output of any logging coming from Log4j2 in ...
BtySgtMajor's user avatar
  • 1,444
0 votes
1 answer
47 views

Log4j2 Custom Appender in Maven Surefire: Possible to Reuse Across Threads?

I have a Log4j2 custom appender that's being used in many of my JUnit5 tests. (For what it's worth, I came across the code in a couple articles and have only made minor adjustments.) When run in ...
BtySgtMajor's user avatar
  • 1,444

15 30 50 per page
1
2 3 4 5
92