Search in sources :

Example 61 with TestSuite

use of junit.framework.TestSuite in project ACS by ACS-Community.

the class _Tests method suite.

public static Test suite() {
    TestSuite ret = new TestSuite("Test for " + _Tests.class.getPackage().getName());
    if (AccTests.hasNativeAcs()) {
        ret.addTestSuite(AcsScriptsTest.class);
        if (AccTests.hasHead()) {
            ret.addTestSuite(ExternalToolsTest.class);
        }
    }
    ret.addTestSuite(ExecutorTest.class);
    return ret;
}
Also used : TestSuite(junit.framework.TestSuite)

Example 62 with TestSuite

use of junit.framework.TestSuite in project ACS by ACS-Community.

the class AccTests method suite.

public static Test suite() {
    TestSuite ret = new TestSuite("Test for " + AccTests.class.getPackage().getName());
    ret.addTest(alma.acs.commandcenter.app._Tests.suite());
    ret.addTest(alma.acs.commandcenter.meta._Tests.suite());
    ret.addTest(alma.acs.commandcenter.engine._Tests.suite());
    ret.addTest(alma.acs.commandcenter.util._Tests.suite());
    return ret;
}
Also used : TestSuite(junit.framework.TestSuite)

Example 63 with TestSuite

use of junit.framework.TestSuite in project ACS by ACS-Community.

the class AllTests method suite.

public static Test suite() {
    TestSuite suite = new TestSuite();
    suite.addTest(new TestSuite(CompHelperGeneratorTest.class));
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite)

Example 64 with TestSuite

use of junit.framework.TestSuite in project kotlin by JetBrains.

the class AndroidRunner method suite.

public static TestSuite suite() throws Throwable {
    PathManager pathManager = getPathManager();
    FileUtil.copyDir(new File(pathManager.getAndroidModuleRoot()), new File(pathManager.getTmpFolder()));
    writeAndroidSkdToLocalProperties();
    CodegenTestsOnAndroidGenerator.generate(pathManager);
    System.out.println("Run tests on android...");
    TestSuite suite = CodegenTestsOnAndroidRunner.getTestSuite(pathManager);
    //suite.addTest(new AndroidJpsBuildTestCase());
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite) File(java.io.File)

Example 65 with TestSuite

use of junit.framework.TestSuite in project kotlin by JetBrains.

the class CodegenTestsOnAndroidRunner method generateTestSuite.

private TestSuite generateTestSuite() {
    TestSuite suite = new TestSuite("MySuite");
    String resultOutput = runTests();
    String reportFolder = pathManager.getTmpFolder() + "/build/outputs/androidTest-results/connected";
    try {
        List<TestCase> testCases = parseSingleReportInFolder(reportFolder);
        for (TestCase aCase : testCases) {
            suite.addTest(aCase);
        }
        Assert.assertNotEquals("There is no test results in report", 0, testCases.size());
    } catch (Exception e) {
        throw new RuntimeException("Can't parse test results in " + reportFolder + "\n" + resultOutput);
    }
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite) TestCase(junit.framework.TestCase) IOException(java.io.IOException) ParserConfigurationException(javax.xml.parsers.ParserConfigurationException) SAXException(org.xml.sax.SAXException)

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