Questions tagged [maven-failsafe-plugin]

The Maven Failsafe Plugin is used to run integration tests with Maven build tools.

The Maven Failsafe Plugin is designed to run integration tests while the Surefire Plugin is designed to run unit tests. The name (failsafe) was chosen both because it is a synonym of surefire and because it implies that when it fails, it does so in a safe way.

This plugin is strictly linked to the following Maven phases: integration-test, verify. However, during its usage, the pre-integration-test and post-integration-test phases are also often used (i.e. set-up and tear-down of an embedded web server).

Check the official usage page for a first look at this plugin.

375 questions
0
votes
1 answer

Maven Cargo: Integration Test runs before cargo deploys war

The integration pom.xml looks like org.apache.maven.plugins maven-failsafe-plugin 2.12
0
votes
0 answers

Create fixed order for integration tests in failesafe plugin

We are using maven in combination with the maven-failsafe-plugin to run our integration tests. This works fine, but we notice that some more long running tests are started at the end. This is not optimal because all other tests are finished while…
Wouter
  • 3,976
  • 2
  • 31
  • 50
0
votes
2 answers

Maven integration-test failed: includes0 has null value

My build recently started failing when trying to do mvn clean install I've not noticed previously because it builds and executes junit tests fine from eclipse. Any idea regarding the cause of the below error? Maven log snippet: [INFO]…
shreyansp
  • 723
  • 1
  • 7
  • 16
0
votes
1 answer

Issue with an ant-style pattern include and the maven-failsafe-plugin

I am desperately trying to get the maven failsafe plugin to run my integration tests. I have configured the plugin as follows: org.apache.maven.plugins maven-failsafe-plugin
balteo
  • 23,602
  • 63
  • 219
  • 412
0
votes
2 answers

Should maven-failsafe-plugin be executed in descendants of POM where it is specified?

I've specified the use of Failsafe in a parent POM. When I run mvn verify on my multi-module build, there is no hint of Failsafe being run - it appears nowhere in the console output. If I add the same definition into a child POM, it does…
DeejUK
  • 12,891
  • 19
  • 89
  • 169
0
votes
1 answer

Client-Server Integration Test with Maven

I have a simple game which consists of two projects: Client and server. Now I want to test if they interact correctly. Setup is: One Maven-parent project, and server/client/integetion-test as child-modules. I tried to follow this guide…
0
votes
1 answer

TestNG reporting in maven

For a project I use jenkins as CI platform, maven for a build framework, and TestNG for a testing framework (integration between maven and TestNG is through the failsafe plugin). Jenkins runs scheduled nightly builds, invokes maven which does the…
munch
  • 2,061
  • 2
  • 16
  • 23
0
votes
3 answers

How to collect statistics about java integration tests

My development environment includes Maven, Failsafe and Spring testing IS (AbstractJUnit4SpringContextTests). I'm looking for a way to collect statistics about the integration tests run. Information such as Test duration, process memory, etc... What…
Avner Levy
  • 6,601
  • 9
  • 53
  • 92
0
votes
0 answers

How can I run my executable war for integration testing with Maven?

I am using the tomcat7-maven-plugin to produce a jar that I can run containing one or more wars with appropriate configurations. I'd like to start this jar prior to running integration tests and stop it when I'm done. I know the failsafe plugin is…
brabster
  • 42,504
  • 27
  • 146
  • 186
0
votes
1 answer

mvn integration-test vs mvn failsafe:integration-test

I met a problem when I use maven failsafe plugin to run integration test. I have two classes one is TestUnitTest.java the other is TestIntegrationIT.java. in pom.xml, I configure as below:
user1438980
  • 187
  • 1
  • 3
  • 13
0
votes
1 answer

How to separate surefire report into 2 or more categories?

I want to separate tests into 3 different categories: unit componnet system Then I want to run them separately on different phases and display results of execution these tests into 3 different surefire reports, or maybe one but with tests resultsd…
0
votes
1 answer

mvn failsafe:integration-test

I am using maven 2 and integration test are in *IT.java files. When I run command mvn failsafe:integration-test integration test run fines. But when I run mvn integration-test it does not run my integration tests. How can I remove prefix failsafe:…
0
votes
1 answer

maven-failsafe-plugin not seeing my tests (seleniumHQ)

i'm writing tests via selenium web driver here's my code : Pom.xml junit junit 4.8.1
Amira Manai
  • 2,599
  • 8
  • 40
  • 60
-2
votes
1 answer

Plugin 'maven-failsafe-plugin:2.22.1' not found

I am getting 'maven-failsafe-plugin2.22.7' not found while importing https://github.com/serenity-bdd/screenplay-pattern-todomvc.git and setting it up as Maven project in Intellij idea. Any idea what could be the issue? Edit: the solution was to run…
-2
votes
1 answer

Integration Test with failsafe

I am using a simple java application with unit and integration tests. My goal is to run integration tests with maven & failsafe plugin. I am having a problem running my integration tests. short explenation: I get an error from "test-compile" phase…
1 2 3
24
25