Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-09-21 17:53:47 +0000
committerspingel2009-09-21 17:53:47 +0000
commit48565ba8bd31d6c49b4dd1716f32c529fe92e796 (patch)
tree16c9b23894e0f0642d9ad23741c321179347db2c
parentf9cb003d4ab99f9fe9f95d7bc71db4bbe40d9733 (diff)
downloadorg.eclipse.mylyn.tasks-48565ba8bd31d6c49b4dd1716f32c529fe92e796.tar.gz
org.eclipse.mylyn.tasks-48565ba8bd31d6c49b4dd1716f32c529fe92e796.tar.xz
org.eclipse.mylyn.tasks-48565ba8bd31d6c49b4dd1716f32c529fe92e796.zip
REOPENED - bug 176634: speed up Trac test cases
https://bugs.eclipse.org/bugs/show_bug.cgi?id=176634
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AllTracHeadlessStandaloneTests.java6
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracClientFactoryTest.java8
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracFixture.java11
3 files changed, 24 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AllTracHeadlessStandaloneTests.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AllTracHeadlessStandaloneTests.java
index df5ddee17..f6097af8a 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AllTracHeadlessStandaloneTests.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AllTracHeadlessStandaloneTests.java
@@ -49,6 +49,12 @@ public class AllTracHeadlessStandaloneTests {
}
suite.addTest(fixtureSuite);
}
+ // validation tests
+ for (TracFixture fixture : TracFixture.MISC) {
+ TestSuite fixtureSuite = fixture.createSuite();
+ fixture.add(fixtureSuite, TracClientTest.class);
+ suite.addTest(fixtureSuite);
+ }
return suite;
}
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracClientFactoryTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracClientFactoryTest.java
index c2aed630a..bc4fe8e56 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracClientFactoryTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracClientFactoryTest.java
@@ -70,6 +70,14 @@ public class TracClientFactoryTest extends TestCase {
probeClient(TracTestConstants.TEST_TRAC_010_DIGEST_AUTH_URL, true);
}
+ public void testProbeClient010FormAuth() throws Exception {
+ probeClient(TracTestConstants.TEST_TRAC_010_FORM_AUTH_URL, true);
+ }
+
+ public void testProbeClient011() throws Exception {
+ probeClient(TracTestConstants.TEST_TRAC_011_URL, true);
+ }
+
protected void probeClient(String url, boolean xmlrpcInstalled) throws Exception {
Credentials credentials = TestUtil.readCredentials(PrivilegeLevel.USER);
WebLocation location = new WebLocation(url, credentials.username, credentials.password);
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracFixture.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracFixture.java
index f1ce19e9b..07dffd848 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracFixture.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracFixture.java
@@ -68,8 +68,17 @@ public class TracFixture extends TestFixture {
//public static TracFixture DEFAULT = TRAC_0_11_WEB;
+ /**
+ * Standard configurations for running all test against.
+ */
public static final TracFixture[] ALL = new TracFixture[] { TRAC_0_9_WEB, TRAC_0_10_WEB, TRAC_0_11_WEB,
- TRAC_0_10_XML_RPC, TRAC_0_11_XML_RPC, };
+ TRAC_0_10_XML_RPC, TRAC_0_11_XML_RPC, /* TRAC_0_10_XML_RPC_SSL, */};
+
+ /**
+ * Misc configurations for running a limited number of test against.
+ */
+ public static final TracFixture[] MISC = new TracFixture[] { TRAC_0_10_XML_RPC_DIGEST_AUTH,
+ TRAC_0_10_XML_RPC_FORM_AUTH, };
public static void cleanup010() throws Exception {
if (data010 != null) {

Back to the top