| /* |
| * Copyright (C) 2010 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| package com.android.tradefed; |
| |
| import com.android.tradefed.command.CommandTest; |
| import com.android.tradefed.config.AbstractConfigurationTest; |
| import com.android.tradefed.config.ArgsOptionParserTest; |
| import com.android.tradefed.config.ConfigurationFactoryTest; |
| import com.android.tradefed.config.OptionParserTest; |
| import com.android.tradefed.device.DeviceManagerTest; |
| import com.android.tradefed.device.DeviceStateMonitorTest; |
| import com.android.tradefed.device.TestDeviceTest; |
| import com.android.tradefed.invoker.TestInvocationTest; |
| import com.android.tradefed.log.FileLoggerTest; |
| import com.android.tradefed.result.CollectingTestListenerTest; |
| import com.android.tradefed.result.JUnitToInvocationResultForwarderTest; |
| import com.android.tradefed.result.LogFileSaverTest; |
| import com.android.tradefed.result.TestResultForwarderTest; |
| import com.android.tradefed.result.XmlResultReporterTest; |
| import com.android.tradefed.testtype.HostTestTest; |
| import com.android.tradefed.testtype.InstrumentationListTestTest; |
| import com.android.tradefed.testtype.InstrumentationTestTest; |
| import com.android.tradefed.testtype.TestTimeoutListenerTest; |
| import com.android.tradefed.testtype.testdefs.XmlDefsParserTest; |
| import com.android.tradefed.testtype.testdefs.XmlDefsTestTest; |
| import com.android.tradefed.util.RunUtilTest; |
| |
| import junit.framework.Test; |
| import junit.framework.TestSuite; |
| |
| /** |
| * A test suite for all Trade Federation unit tests. |
| * <p/> |
| * All tests listed here should be self-contained, and do not require any external dependencies. |
| */ |
| public class UnitTests extends TestSuite { |
| |
| public UnitTests() { |
| super(); |
| addTestSuite(CommandTest.class); |
| addTestSuite(AbstractConfigurationTest.class); |
| addTestSuite(ArgsOptionParserTest.class); |
| addTestSuite(OptionParserTest.class); |
| addTestSuite(ConfigurationFactoryTest.class); |
| addTestSuite(DeviceManagerTest.class); |
| addTestSuite(DeviceStateMonitorTest.class); |
| addTestSuite(TestDeviceTest.class); |
| addTestSuite(TestInvocationTest.class); |
| addTestSuite(FileLoggerTest.class); |
| addTestSuite(CollectingTestListenerTest.class); |
| addTestSuite(JUnitToInvocationResultForwarderTest.class); |
| addTestSuite(LogFileSaverTest.class); |
| addTestSuite(TestResultForwarderTest.class); |
| addTestSuite(XmlResultReporterTest.class); |
| addTestSuite(InstrumentationListTestTest.class); |
| addTestSuite(InstrumentationTestTest.class); |
| addTestSuite(HostTestTest.class); |
| addTestSuite(TestTimeoutListenerTest.class); |
| addTestSuite(XmlDefsParserTest.class); |
| addTestSuite(XmlDefsTestTest.class); |
| addTestSuite(RunUtilTest.class); |
| } |
| |
| public static Test suite() { |
| return new UnitTests(); |
| } |
| } |