maven-failsafe-plugin

failsafe plugin won't run on one project but will run on another — why?

隐身守侯 提交于 2019-11-27 02:09:57
This is driving me insane. The Maven failsafe plugin will not run on my project. If I run mvn verify only surefire runs. If I type mvn failsafe:verify it fails with the following error: [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Simulation Experiment Server 1.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-failsafe-plugin:2.11:verify (default-cli) @ experiment-server --- [INFO] Failsafe report directory: C:\IdeaProjects\experiment_server\target

Maven Failsafe Plugin: how to use the pre- and post-integration-test phases

陌路散爱 提交于 2019-11-26 20:56:25
问题 It is not completely clear to me how to best use the Maven Failsafe plugin for integration tests. My use case would be to test SQL queries against a local MySQL database. I understand that the database should be started during the pre-integration-test phase, and shut down during the post-integration-test . But how do I specify that? Is there a command line I should put in my pom.xml? Or a method that I should annotate with a specific annotation? 回答1: In the regular built-in maven lifecycles

How can I skip tests in maven install goal, while running them in maven test goal?

末鹿安然 提交于 2019-11-26 12:51:56
问题 I have a multi-module maven project with both integration and unit tests in the same folder (src/test/java). Integration tests are marked with @Category(IntegrationTest.class) . I want to end up with the following setup: If I run mvn install , I want all tests to compile, but I do not want to execute any. If I run mvn test , I want all tests to compile, but execute only unit tests. If I run mvn integration-test , I want to compile and execute all tests. The important point is, I want this

Prevent unit tests but allow integration tests in Maven

大憨熊 提交于 2019-11-26 11:46:25
问题 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\'s not a good solution for me to add different profiles or anything in the pom, because it\'s a multimodule build and I don\'t want to have to edit every module\'s pom. There are skip.tests and maven.test.skip and skipTests which stop all tests, and skipITs, which stops only the failsafe plugin. So

failsafe plugin won't run on one project but will run on another — why?

て烟熏妆下的殇ゞ 提交于 2019-11-26 09:59:19
问题 This is driving me insane. The Maven failsafe plugin will not run on my project. If I run mvn verify only surefire runs. If I type mvn failsafe:verify it fails with the following error: [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Simulation Experiment Server 1.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-failsafe-plugin:2.11:verify (default