INT-3155: Add Gradle Task 'testAll'
* Add to `LongRunningIntegrationTest` ability to read `System.properties` Note, ENV property 'RUN_LONG_INTEGRATION_TESTS' has a preference in case of value `true` * Add Gradle task `testAll` * Upgrade to Gradle 1.7 * Improve build performance by adding 'inputs'/'outputs' to some tasks JIRA: https://jira.springsource.org/browse/INT-3155 Polishing Remove inputs/outputs. Polish RouterConcurrencyTest.
This commit is contained in:
committed by
Gary Russell
parent
7101120589
commit
dd5c9cc18c
@@ -27,6 +27,7 @@ import org.junit.runners.model.Statement;
|
||||
* variable RUN_LONG_INTEGRATION_TESTS on a CI nightly build to ensure coverage.
|
||||
*
|
||||
* @author Gary Russell
|
||||
* @author Artem Bilan
|
||||
* @since 3.0
|
||||
*
|
||||
*/
|
||||
@@ -34,10 +35,22 @@ public class LongRunningIntegrationTest extends TestWatcher {
|
||||
|
||||
private final static Log logger = LogFactory.getLog(LongRunningIntegrationTest.class);
|
||||
|
||||
private static final String RUN_LONG_PROP = "RUN_LONG_INTEGRATION_TESTS";
|
||||
|
||||
private boolean shouldRun = false;
|
||||
|
||||
public LongRunningIntegrationTest() {
|
||||
for(String value: new String[]{System.getenv(RUN_LONG_PROP), System.getProperty(RUN_LONG_PROP)}) {
|
||||
if ("true".equalsIgnoreCase(value)) {
|
||||
this.shouldRun = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Statement apply(Statement base, Description description) {
|
||||
boolean shouldRun = "true".equalsIgnoreCase(System.getenv("RUN_LONG_INTEGRATION_TESTS"));
|
||||
if (!shouldRun) {
|
||||
if (!this.shouldRun) {
|
||||
logger.info("Skipping long running test " + description.getDisplayName());
|
||||
return new Statement() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user