Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.trac.tests/src')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AllTracTests.java30
1 files changed, 21 insertions, 9 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 e6104c62e..973fcc4fd 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
@@ -32,6 +32,10 @@ import org.eclipse.mylyn.trac.tests.ui.TracRepositorySettingsPageTest;
public class AllTracTests {
public static Test suite() {
+ return suite(false);
+ }
+
+ public static Test suite(boolean defaultOnly) {
TestSuite suite = new TestSuite("Tests for org.eclipse.mylyn.trac.tests");
suite.addTest(AllTracHeadlessStandaloneTests.suite());
suite.addTestSuite(TracUtilTest.class);
@@ -40,18 +44,26 @@ public class AllTracTests {
suite.addTestSuite(TracRepositorySettingsPageTest.class);
suite.addTestSuite(TracHyperlinkUtilTest.class);
// network tests
- for (TracFixture fixture : TracFixture.ALL) {
- fixture.createSuite(suite);
- fixture.add(TracRepositoryConnectorTest.class);
- if (fixture.getAccessMode() == Version.XML_RPC) {
- fixture.add(TracTaskDataHandlerXmlRpcTest.class);
- fixture.add(TracAttachmentHandlerTest.class);
- } else {
- fixture.add(TracRepositoryConnectorWebTest.class);
+ if (defaultOnly) {
+ addTests(suite, TracFixture.DEFAULT);
+ } else {
+ for (TracFixture fixture : TracFixture.ALL) {
+ addTests(suite, fixture);
}
- fixture.done();
}
return suite;
}
+ protected static void addTests(TestSuite suite, TracFixture fixture) {
+ fixture.createSuite(suite);
+ fixture.add(TracRepositoryConnectorTest.class);
+ if (fixture.getAccessMode() == Version.XML_RPC) {
+ fixture.add(TracTaskDataHandlerXmlRpcTest.class);
+ fixture.add(TracAttachmentHandlerTest.class);
+ } else {
+ fixture.add(TracRepositoryConnectorWebTest.class);
+ }
+ fixture.done();
+ }
+
} \ No newline at end of file

Back to the top