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: 4032 $
7 */
8 import junit.framework.*;
9 import groovy.util.AllTestSuite;
10
11 public class UberTestCase extends TestCase {
12 public static Test suite() {
13 TestSuite suite = (TestSuite) AllTestSuite.suite("src/test/groovy", "*Test.groovy");
14
15 String osName = System.getProperty ( "os.name" ) ;
16 if ( osName.equals ( "Linux" ) || osName.equals ( "SunOS" ) ) {
17 suite.addTestSuite ( ExecuteTest_LinuxSolaris.class ) ;
18 }
19 else {
20 System.err.println ( "XXXXXX No execute testsfor this OS. XXXXXX" ) ;
21 }
22
23 return suite;
24 }
25
26 // The following classes appear in target/test-classes but do not extend junit.framework.TestCase
27 //
28 // AnotherMockInputStream.class
29 // Bean.class
30 // Bean249.class
31 // BooleanBean.class
32 // CallAnotherScript.class
33 // ClassWithScript.class
34 // ComparableFoo.class
35 // CreateData.class
36 // Entry.class
37 // EvalInScript.class
38 // Feed.class
39 // Foo.class
40 // HelloWorld.class
41 // HelloWorld2.class
42 // Html2Wiki.class
43 // IntegerCategory.class
44 // Loop.class
45 // Loop2.class
46 // MapFromList.class
47 // MarkupTestScript.class
48 // MethodTestScript.class
49 // MockInputStream.class
50 // MockProcess.class
51 // MockSocket.class
52 // OverloadA.class
53 // OverloadB.class
54 // NavToWiki.class
55 // Person.class
56 // SampleMain.class
57 // ScriptWithFunctions.class
58 // ShowArgs.class
59 // StringCategory.class
60 // SuperBase.class
61 // SuperDerived.class
62 // TestBase.class
63 // TestCaseBug.class
64 // TestDerived.class
65 // TinyAgent.class
66 // UnitTestAsScript.class
67 // UseClosureInScript.class
68 // X.class
69 // createLoop.class
70 }