blob: 278dcb397ebc44a3a2ba55cd40d4312876d4597c (
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
|
/*******************************************************************************
* Copyright (c) 2011 - 2014 Wind River Systems, Inc. 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:
* Wind River Systems - initial API and implementation
*******************************************************************************/
package org.eclipse.tcf.te.tests.suites;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.eclipse.core.runtime.Assert;
import org.eclipse.tcf.te.tests.concurrent.ConcurrentTestCase;
import org.eclipse.tcf.te.tests.model.ModelTestCase;
import org.eclipse.tcf.te.tests.statushandler.StatusHandlerTestCase;
import org.eclipse.tcf.te.tests.stepper.StepperTests;
import org.eclipse.tcf.te.tests.tcf.launch.TcfLaunchTests;
import org.eclipse.tcf.te.tests.tcf.locator.LocatorModelTestCase;
import org.eclipse.tcf.te.tests.tcf.processes.launcher.ProcessLauncherTestCase;
import org.eclipse.tcf.te.tests.tcf.processes.model.ProcessModelTestCase;
import org.eclipse.tcf.te.tests.utils.UtilityTestCase;
/**
* Links all tests together into a single suite.
*/
public class AllTests {
/**
* Main method called if the tests are running as part of the nightly
* Workbench wheel. Use only the <code>junit.textui.TestRunner</code>
* here to execute the tests!
*
* @param args The command line arguments passed.
*/
public static void main (String[] args) {
junit.textui.TestRunner.run(suite());
}
/**
* Static method called by the several possible test runners to fetch
* the test(s) to run.
* Do not rename this method, otherwise tests will not be called anymore!
*
* @return Any object of type <code>Test</code> containing the test to run.
*/
public static Test suite() {
TestSuite suite = new TestSuite("All Target Explorer Tests"); //$NON-NLS-1$
addTests(suite);
return suite;
}
/**
* Adds all related tests to the given test suite.
*
* @param suite The test suite. Must not be <code>null</code>.
*/
public static void addTests(TestSuite suite) {
Assert.isNotNull(suite);
suite.addTest(ModelTestCase.getTestSuite());
suite.addTest(org.eclipse.tcf.te.tests.tcf.model.ModelTestCase.getTestSuite());
suite.addTest(UtilityTestCase.getTestSuite());
suite.addTest(ConcurrentTestCase.getTestSuite());
suite.addTest(StatusHandlerTestCase.getTestSuite());
suite.addTest(LocatorModelTestCase.getTestSuite());
suite.addTest(StepperTests.getTestSuite());
suite.addTest(TcfLaunchTests.getTestSuite());
suite.addTest(ProcessModelTestCase.getTestSuite());
suite.addTest(ProcessLauncherTestCase.getTestSuite());
//AllFileSystemTests.addTests(suite);
}
}
|