blob: 84fadbe913e000ff207128b1bf02ea7f9ed694f4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
/*******************************************************************************
* Copyright (c) 2004, 2009 Tasktop Technologies and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Tasktop Technologies - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.bugzilla.tests;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.eclipse.mylyn.bugzilla.tests.core.BugzillaPriorityTest;
import org.eclipse.mylyn.bugzilla.tests.support.BugzillaFixture;
import org.eclipse.mylyn.bugzilla.tests.ui.BugzillaHyperlinkDetectorTest;
import org.eclipse.mylyn.bugzilla.tests.ui.BugzillaRepositorySettingsPageTest;
import org.eclipse.mylyn.bugzilla.tests.ui.BugzillaSearchPageTest;
import org.eclipse.mylyn.bugzilla.tests.ui.BugzillaTaskHyperlinkDetectorTest;
import org.eclipse.mylyn.bugzilla.tests.ui.TaskEditorTest;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaVersion;
/**
* @author Mik Kersten
*/
public class AllBugzillaTests {
public static Test suite() {
TestSuite suite = new TestSuite("Tests for org.eclipse.mylyn.bugzilla.tests");
// Standalone tests (Don't require an instance of Eclipse)
suite.addTest(AllBugzillaHeadlessStandaloneTests.suite());
// Tests that only need to run once (i.e. no network io so doesn't matter which repository)
suite.addTestSuite(TaskEditorTest.class);
suite.addTestSuite(BugzillaRepositorySettingsPageTest.class);
suite.addTestSuite(BugzillaSearchPageTest.class);
suite.addTestSuite(BugzillaDateTimeTests.class);
suite.addTestSuite(BugzillaTaskHyperlinkDetectorTest.class);
suite.addTestSuite(BugzillaHyperlinkDetectorTest.class);
// Each of these tests gets executed against every repo in BugzillaFixture.ALL
// unless otherwise excluded
for (BugzillaFixture fixture : BugzillaFixture.ALL) {
fixture.createSuite(suite);
fixture.add(RepositoryReportFactoryTest.class);
fixture.add(BugzillaTaskDataHandlerTest.class);
fixture.add(BugzillaSearchTest.class);
fixture.add(EncodingTest.class);
fixture.add(BugzillaPriorityTest.class);
// Move any tests here that are resulting in spurious failures
// due to recent changes in Bugzilla Server head.
if (fixture != BugzillaFixture.BUGS_HEAD) {
}
// Only run these tests on > 3.2 repositories
if (!fixture.getBugzillaVersion().isSmallerOrEquals(BugzillaVersion.BUGZILLA_3_2)) {
if (fixture != BugzillaFixture.BUGS_HEAD) {
fixture.add(BugzillaRepositoryConnectorTest.class);
}
fixture.add(BugzillaAttachmentHandlerTest.class);
}
fixture.done();
}
// TODO 3.5 re-enable tests
// for (BugzillaFixture fixture : BugzillaFixture.ONLY_3_6_SPECIFIC) {
// fixture.createSuite(suite);
// fixture.add(BugzillaXmlRpcClientTest.class);
// fixture.done();
// }
return suite;
}
}
|