1 /***
2 * Collects all TestCases in the Groovy test root that are written in Groovy.
3 *
4 * @author <a href="mailto:jeremy.rayner@bigfoot.com">Jeremy Rayner</a>
5 * @author Dierk Koenig (refactored to use AllTestSuite)
6 * @version $Revision: 1.55 $
7 */
8 import junit.framework.*;
9 import groovy.util.AllTestSuite;
10
11 import java.io.File;
12 import java.io.IOException;
13
14 public class UberTestCase extends TestCase {
15 public static Test suite() {
16 TestSuite suite = (TestSuite) AllTestSuite.suite("src/test/groovy", "*Test.groovy");
17
18 String osName = System.getProperty ( "os.name" ) ;
19 if ( osName.equals ( "Linux" ) || osName.equals ( "SunOS" ) ) {
20 suite.addTestSuite ( ExecuteTest_LinuxSolaris.class ) ;
21 }
22 else {
23 System.err.println ( "XXXXXX No execute testsfor this OS. XXXXXX" ) ;
24 }
25
26 return suite;
27 }
28
29 // The following classes appear in target/test-classes but do not extend junit.framework.TestCase
30 //
31 // AnotherMockInputStream.class
32 // Bean.class
33 // Bean249.class
34 // BooleanBean.class
35 // CallAnotherScript.class
36 // ClassWithScript.class
37 // ComparableFoo.class
38 // CreateData.class
39 // Entry.class
40 // EvalInScript.class
41 // Feed.class
42 // Foo.class
43 // HelloWorld.class
44 // HelloWorld2.class
45 // Html2Wiki.class
46 // IntegerCategory.class
47 // Loop.class
48 // Loop2.class
49 // MapFromList.class
50 // MarkupTestScript.class
51 // MethodTestScript.class
52 // MockInputStream.class
53 // MockProcess.class
54 // MockSocket.class
55 // OverloadA.class
56 // OverloadB.class
57 // NavToWiki.class
58 // Person.class
59 // SampleMain.class
60 // ScriptWithFunctions.class
61 // ShowArgs.class
62 // StringCategory.class
63 // SuperBase.class
64 // SuperDerived.class
65 // TestBase.class
66 // TestCaseBug.class
67 // TestDerived.class
68 // TinyAgent.class
69 // UnitTestAsScript.class
70 // UseClosureInScript.class
71 // X.class
72 // createLoop.class
73 }