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

Why my maven-surefire-plugin needs to sit in the main project build?

Note that I'm happy with the maven-surefire-plugin sitting in the main project build as it gives me the successful builds I need. But I still have a question on something that is puzzling me... I'm running a build of a Maven project. There are two…
Stephane
  • 11,836
  • 25
  • 112
  • 175
0
votes
1 answer

Why "mvn install" is running my tomcat in Install Phase?

I have configured failsafe together with tomcat7-maven-plugin for making integration-test. It's great and works very well when I type: mvn clean verify -P integration-test My pom.xml is like that:
0
votes
1 answer

Maven exec plugin Class Not Found Exception

when I right click on the class that has the main() method in Eclipse, and go into properties -> resource, the path to the class is this: /UserRegistrationServices/src/main/java/main/Application.java In my POM.xml file I have this:
0
votes
2 answers

Is isolation of failsafe and surefire runs from each other using a skip approach possible?

The value of property skipITs when overridden on the command line appears to be ignored by maven if used in conjunction with -Dit.test=full.Classname. The specified failsafe test will not be run (case one). As opposed to this specifiing skipITs…
0
votes
1 answer

inmemdb-maven-plugin and maven-failsafe-plugin database table creation issue

Struggling to get my integration tests working with inmemdb-maven-plugin and maven-failsafe-plugin. Basically, I run hibernate4-maven-plugin that generates an SQL script with the "create" statements for the tables I will need to run my integration…
0
votes
1 answer

Why are my integration tests not executed?

I use surefire and failsafe to execute unit tests respectively, integration tests. All tests reside in the folder src/test/java. So far I have one integration test class TaskAdditionIT.java whose test methods (annotated with @Test) are never…
0
votes
1 answer

Failsafe plugin: running only the selected tests in command line

I have the following configuration in the pom.xml: org.apache.maven.plugins maven-failsafe-plugin 2.18.1
user3155208
  • 191
  • 1
  • 9
0
votes
1 answer

mvn integration-test command pulls in unwanted unit tests for execution

When I run mvn test it executes unit tests only but when I run mvn integration-test it executes both unit test and integration test even after configuring the maven-failsafe-plugin and excluding the *Test.java file. Not sure what I am missing here.…
Nital
  • 5,784
  • 26
  • 103
  • 195
0
votes
1 answer

Maven-postman-plugin: correct configuration for goal, surefire-mail

I'm having a whale of a time getting this plugin to mail me failsafe or surefire test results. The send-mail goal works fine (but can't do conditional sending using groovy). I can send an attachement to my mail recipient. But, when I run the…
0
votes
1 answer

Inject test data to Junit reports for failed tests (failsafe plugin used)

I have several tests cases in a list using failsafe and Junit as per below: @Test public void testResults() { for (TestCase test : TestCaseList) { int result = test.getActualResult(); int expected =…
Pablo
  • 55
  • 8
0
votes
1 answer

Roo and Failsafe integration tests: BeanConfigurerSupport issue

case: Roo application with integration tests autoganerated. need: use PGSQL for deployment, HSQLDB for integration tests. choice: spring-agent/spring-instrument & aspectjweaver in argLine in maven-failsafe-plugin configuration so as not to be…
0
votes
0 answers

How to exclude some junit tests from failsafe reports but not from execution?

I am using Jenkins + Maven + Java for continuous testing, and recently Thucydides + JBehave were added. I am pretty new to Jenkins and Thucydides, so I faced trouble with showing the build reports. I don't have rights to change Jenkins…
marrybat
  • 15
  • 5
0
votes
2 answers

How to tag a non critical test case in TestNG and Maven failsafe plugin

Test Execution should be successful even the non-critical test case failed.
PGS
  • 1,046
  • 2
  • 17
  • 38
0
votes
2 answers

Maven - make a report when failsafe crashes during execution

I use Maven to make Integration test with Selenium, which run automatically. I need to find a way to detect when failsafe crashes (when my integration test with selenium gets a fail), and make a report. How can I do that ? At the end, I want to send…
pikameuh
  • 149
  • 1
  • 1
  • 12
0
votes
1 answer

Binding to lifecycle in maven does not work on failsafe and integration-test

When trying to get failsafe bound to the lifecycle, nothing is executed at all. I have read this guide and this related question, and according to this information, it should be possible to make maven execute an the goal integration-test of failsafe…
David Georg Reichelt
  • 963
  • 1
  • 15
  • 36
1 2 3
24
25