Search in sources :

Example 1 with PerformanceSessionTestSuite

use of org.eclipse.core.tests.session.PerformanceSessionTestSuite in project eclipse.platform.runtime by eclipse.

the class MultipleRunsTest2 method suite.

public static Test suite() {
    PerformanceSessionTestSuite suite = new PerformanceSessionTestSuite(CoreTest.PI_HARNESS, 10);
    suite.addTest(new TestDescriptor(SampleSessionTest.class.getName(), "testApplicationStartup"));
    return suite;
}
Also used : PerformanceSessionTestSuite(org.eclipse.core.tests.session.PerformanceSessionTestSuite) TestDescriptor(org.eclipse.core.tests.session.TestDescriptor)

Example 2 with PerformanceSessionTestSuite

use of org.eclipse.core.tests.session.PerformanceSessionTestSuite in project eclipse.platform.runtime by eclipse.

the class ContentTypePerformanceTest method suite.

public static Test suite() {
    TestSuite suite = new TestSuite(ContentTypePerformanceTest.class.getName());
    // suite.addTest(new ContentTypePerformanceTest("testDoSetUp"));
    // suite.addTest(new ContentTypePerformanceTest("testContentMatching"));
    // suite.addTest(new ContentTypePerformanceTest("testContentTXTMatching"));
    // suite.addTest(new ContentTypePerformanceTest("testContentXMLMatching"));
    // suite.addTest(new ContentTypePerformanceTest("testDoTearDown"));
    SessionTestSuite setUp = new SessionTestSuite(PI_RUNTIME_TESTS, "testDoSetUp");
    setUp.addTest(new ContentTypePerformanceTest("testDoSetUp"));
    suite.addTest(setUp);
    TestSuite singleRun = new PerformanceSessionTestSuite(PI_RUNTIME_TESTS, 1, "singleSessionTests");
    singleRun.addTest(new ContentTypePerformanceTest("testContentMatching"));
    singleRun.addTest(new ContentTypePerformanceTest("testNameMatching"));
    singleRun.addTest(new ContentTypePerformanceTest("testIsKindOf"));
    suite.addTest(singleRun);
    TestSuite loadCatalog = new PerformanceSessionTestSuite(PI_RUNTIME_TESTS, 10, "multipleSessionTests");
    loadCatalog.addTest(new ContentTypePerformanceTest("testLoadCatalog"));
    suite.addTest(loadCatalog);
    TestSuite tearDown = new SessionTestSuite(PI_RUNTIME_TESTS, "testDoTearDown");
    tearDown.addTest(new ContentTypePerformanceTest("testDoTearDown"));
    suite.addTest(tearDown);
    return suite;
}
Also used : PerformanceSessionTestSuite(org.eclipse.core.tests.session.PerformanceSessionTestSuite) SessionTestSuite(org.eclipse.core.tests.session.SessionTestSuite) PerformanceSessionTestSuite(org.eclipse.core.tests.session.PerformanceSessionTestSuite) TestSuite(junit.framework.TestSuite) SessionTestSuite(org.eclipse.core.tests.session.SessionTestSuite) PerformanceSessionTestSuite(org.eclipse.core.tests.session.PerformanceSessionTestSuite)

Aggregations

PerformanceSessionTestSuite (org.eclipse.core.tests.session.PerformanceSessionTestSuite)2 TestSuite (junit.framework.TestSuite)1 SessionTestSuite (org.eclipse.core.tests.session.SessionTestSuite)1 TestDescriptor (org.eclipse.core.tests.session.TestDescriptor)1