Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-03-03 12:40:55 +0000
committerSteffen Pingel2012-03-03 12:40:55 +0000
commit716ae0bc2c6cdd5718d4887d66a9617ae7d6f86d (patch)
treecffebd0aa950809a8af83889b55cd262e60cea7c /org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn
parent8467de45a34ee2730b3b6e97a7230876c97d6eb5 (diff)
downloadorg.eclipse.mylyn.tasks-716ae0bc2c6cdd5718d4887d66a9617ae7d6f86d.tar.gz
org.eclipse.mylyn.tasks-716ae0bc2c6cdd5718d4887d66a9617ae7d6f86d.tar.xz
org.eclipse.mylyn.tasks-716ae0bc2c6cdd5718d4887d66a9617ae7d6f86d.zip
run clean up as part of Trac integration test suite
Diffstat (limited to 'org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AllTracTests.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AllTracTests.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AllTracTests.java
index e7262ff13..0848399a6 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AllTracTests.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AllTracTests.java
@@ -14,8 +14,11 @@ package org.eclipse.mylyn.trac.tests;
import junit.framework.Test;
import junit.framework.TestSuite;
+import org.eclipse.mylyn.commons.sdk.util.CommonTestUtil;
+import org.eclipse.mylyn.commons.sdk.util.CommonTestUtil.PrivilegeLevel;
import org.eclipse.mylyn.commons.sdk.util.ManagedTestSuite;
import org.eclipse.mylyn.commons.sdk.util.TestConfiguration;
+import org.eclipse.mylyn.commons.sdk.util.TestConfiguration.TestKind;
import org.eclipse.mylyn.internal.trac.core.client.ITracClient.Version;
import org.eclipse.mylyn.trac.tests.core.TracAttachmentHandlerTest;
import org.eclipse.mylyn.trac.tests.core.TracRepositoryConnectorTest;
@@ -24,6 +27,7 @@ import org.eclipse.mylyn.trac.tests.core.TracRepositoryQueryTest;
import org.eclipse.mylyn.trac.tests.core.TracTaskDataHandlerXmlRpcTest;
import org.eclipse.mylyn.trac.tests.core.TracUtilTest;
import org.eclipse.mylyn.trac.tests.support.TracFixture;
+import org.eclipse.mylyn.trac.tests.support.TracTestCleanupUtil;
import org.eclipse.mylyn.trac.tests.ui.TracHyperlinkUtilTest;
import org.eclipse.mylyn.trac.tests.ui.TracRepositorySettingsPageTest;
@@ -46,6 +50,10 @@ public class AllTracTests {
}
public static void addTests(TestSuite suite, TestConfiguration configuration) {
+ if (configuration.hasKind(TestKind.INTEGRATION) && CommonTestUtil.getCredentials(PrivilegeLevel.ADMIN) != null) {
+ suite.addTestSuite(TracTestCleanupUtil.class);
+ }
+
suite.addTest(AllTracHeadlessStandaloneTests.suite(configuration));
suite.addTestSuite(TracUtilTest.class);
// XXX fails when run from continuous build: suite.addTestSuite(TracTaskEditorTest.class);

Back to the top