Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Oberlies2015-04-09 10:50:26 -0400
committerTobias Oberlies2015-04-10 15:19:32 -0400
commit90e94235981d5b6d0fe2bc8e03b4b21804a684f7 (patch)
tree85d9fcc56514d891c7321659f7bda2be9bcec40d
parentbbf96725ffe4f69244edc6807505a375e000eb28 (diff)
downloadorg.eclipse.tycho-90e94235981d5b6d0fe2bc8e03b4b21804a684f7.tar.gz
org.eclipse.tycho-90e94235981d5b6d0fe2bc8e03b4b21804a684f7.tar.xz
org.eclipse.tycho-90e94235981d5b6d0fe2bc8e03b4b21804a684f7.zip
[project setup] Make 'How to run ITs in Eclipse' self-explaining
- Detect missing test data in the Tycho integration tests, and print out an error message that explains how to generate it. The launch configuration 'tycho-its - prepare test resources' is already checked in. Change-Id: Ic648e787dfff0749fa8e9fd05c9c764a84b19834
-rw-r--r--tycho-testing-harness/src/main/java/org/eclipse/tycho/test/AbstractTychoIntegrationTest.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/tycho-testing-harness/src/main/java/org/eclipse/tycho/test/AbstractTychoIntegrationTest.java b/tycho-testing-harness/src/main/java/org/eclipse/tycho/test/AbstractTychoIntegrationTest.java
index 2ac8f6b3d..097bdeb0a 100644
--- a/tycho-testing-harness/src/main/java/org/eclipse/tycho/test/AbstractTychoIntegrationTest.java
+++ b/tycho-testing-harness/src/main/java/org/eclipse/tycho/test/AbstractTychoIntegrationTest.java
@@ -154,7 +154,12 @@ public abstract class AbstractTychoIntegrationTest {
}
protected String getMavenHome() {
- return EnvironmentUtil.getMavenHome();
+ String mavenHome = EnvironmentUtil.getMavenHome();
+ if (mavenHome == null) {
+ throw new IllegalStateException(
+ "Generated test data for the integration tests is missing. Run the launch configuration 'tycho-its - prepare test resources' first.");
+ }
+ return mavenHome;
}
protected String getTychoVersion() {

Back to the top