Search in sources :

Example 21 with TestSuite

use of junit.framework.TestSuite in project android_frameworks_base by ParanoidAndroid.

the class MediaFrameworkPerfTestRunner method getAllTests.

@Override
public TestSuite getAllTests() {
    TestSuite suite = new InstrumentationTestSuite(this);
    suite.addTestSuite(MediaPlayerPerformance.class);
    /* Video Editor performance Test cases */
    suite.addTestSuite(VideoEditorPerformance.class);
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite) InstrumentationTestSuite(android.test.InstrumentationTestSuite) InstrumentationTestSuite(android.test.InstrumentationTestSuite)

Example 22 with TestSuite

use of junit.framework.TestSuite in project android_frameworks_base by ParanoidAndroid.

the class MediaFrameworkPowerTestRunner method getAllTests.

@Override
public TestSuite getAllTests() {
    TestSuite suite = new InstrumentationTestSuite(this);
    suite.addTestSuite(MediaPlayerPowerTest.class);
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite) InstrumentationTestSuite(android.test.InstrumentationTestSuite) InstrumentationTestSuite(android.test.InstrumentationTestSuite)

Example 23 with TestSuite

use of junit.framework.TestSuite in project android_frameworks_base by ParanoidAndroid.

the class MediaPlayerStressTestRunner method getAllTests.

@Override
public TestSuite getAllTests() {
    TestSuite suite = new InstrumentationTestSuite(this);
    suite.addTestSuite(MediaPlayerStressTest.class);
    /** Video Editor Stress Test cases*/
    suite.addTestSuite(VideoEditorStressTest.class);
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite) InstrumentationTestSuite(android.test.InstrumentationTestSuite) InstrumentationTestSuite(android.test.InstrumentationTestSuite)

Example 24 with TestSuite

use of junit.framework.TestSuite in project hackpad by dropbox.

the class StandardTests method suite.

public static TestSuite suite() throws Exception {
    TestSuite suite = new TestSuite("Standard JavaScript tests");
    if (!DISABLE) {
        File testDir = null;
        if (System.getProperty("mozilla.js.tests") != null) {
            testDir = new File(System.getProperty("mozilla.js.tests"));
        } else {
            URL url = StandardTests.class.getResource(".");
            String path = url.getFile();
            int jsIndex = path.lastIndexOf("/js");
            if (jsIndex == -1) {
                throw new IllegalStateException("You aren't running the tests from within the standard mozilla/js directory structure");
            }
            path = path.substring(0, jsIndex + 3).replace('/', File.separatorChar);
            path = path.replace("%20", " ");
            testDir = new File(path, "tests");
        }
        if (!testDir.isDirectory()) {
            throw new FileNotFoundException(testDir + " is not a directory");
        }
        String[] excludes = TestUtils.loadTestsFromResource("/base.skip", null);
        String[] opt1Excludes = TestUtils.loadTestsFromResource("/opt1.skip", excludes);
        for (int i = -1; i < 2; ++i) {
            TestSuite optimizationLevelSuite = new TestSuite("Optimization level " + i);
            addSuites(optimizationLevelSuite, testDir, i == -1 ? excludes : opt1Excludes, i);
            suite.addTest(optimizationLevelSuite);
        }
    }
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite) FileNotFoundException(java.io.FileNotFoundException) File(java.io.File) URL(java.net.URL)

Example 25 with TestSuite

use of junit.framework.TestSuite in project druid by druid-io.

the class BitmapIterationTest method suite.

public static Test suite() {
    List<BitmapFactory> factories = Arrays.asList(new BitSetBitmapFactory(), new ConciseBitmapFactory());
    TestSuite suite = new TestSuite();
    for (BitmapFactory factory : factories) {
        suite.addTest(suiteForFactory(factory));
    }
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite)

Aggregations

TestSuite (junit.framework.TestSuite)1380 InstrumentationTestSuite (android.test.InstrumentationTestSuite)100 Test (junit.framework.Test)63 GwtIncompatible (com.google.common.annotations.GwtIncompatible)54 JUnit4TestAdapter (junit.framework.JUnit4TestAdapter)50 TestCase (junit.framework.TestCase)48 Entry (java.util.Map.Entry)36 TestResult (junit.framework.TestResult)33 List (java.util.List)28 Set (java.util.Set)27 TestProjectSetup (org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup)27 ArrayList (java.util.ArrayList)25 ListTestSuiteBuilder (com.google.common.collect.testing.ListTestSuiteBuilder)24 TestStringSetGenerator (com.google.common.collect.testing.TestStringSetGenerator)24 Map (java.util.Map)19 File (java.io.File)16 Method (java.lang.reflect.Method)16 HashSet (java.util.HashSet)13 Helpers.mapEntry (com.google.common.collect.testing.Helpers.mapEntry)12 TestStringMultisetGenerator (com.google.common.collect.testing.google.TestStringMultisetGenerator)12