1 | /* |
---|
2 | * This program is free software; you can redistribute it and/or modify |
---|
3 | * it under the terms of the GNU General Public License as published by |
---|
4 | * the Free Software Foundation; either version 2 of the License, or |
---|
5 | * (at your option) any later version. |
---|
6 | * |
---|
7 | * This program is distributed in the hope that it will be useful, |
---|
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
10 | * GNU General Public License for more details. |
---|
11 | * |
---|
12 | * You should have received a copy of the GNU General Public License |
---|
13 | * along with this program; if not, write to the Free Software |
---|
14 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
15 | */ |
---|
16 | |
---|
17 | /* |
---|
18 | * Copyright (C) 2006 University of Waikato, Hamilton, New Zealand |
---|
19 | */ |
---|
20 | |
---|
21 | package weka.core; |
---|
22 | |
---|
23 | import weka.test.WekaTestSuite; |
---|
24 | |
---|
25 | import java.util.Vector; |
---|
26 | |
---|
27 | import junit.framework.Test; |
---|
28 | import junit.framework.TestCase; |
---|
29 | import junit.framework.TestSuite; |
---|
30 | |
---|
31 | /** |
---|
32 | * Test class for all core classes. Run from the command line with: <p/> |
---|
33 | * java weka.core.AllTests |
---|
34 | * |
---|
35 | * @author FracPete (frapcete at waikato dot ac dot nz) |
---|
36 | * @version $Revision: 1.5 $ |
---|
37 | */ |
---|
38 | public class AllTests |
---|
39 | extends WekaTestSuite { |
---|
40 | |
---|
41 | /** |
---|
42 | * generates all the tests |
---|
43 | * |
---|
44 | * @return all the tests |
---|
45 | */ |
---|
46 | public static Test suite() { |
---|
47 | TestSuite suite = new TestSuite(); |
---|
48 | |
---|
49 | // all test in core package |
---|
50 | Vector packages = new Vector(); |
---|
51 | packages.add("weka.core"); |
---|
52 | suite.addTest(suite(TestCase.class.getName(), packages)); |
---|
53 | |
---|
54 | // all OptionHandler's |
---|
55 | // TODO: fix all errors |
---|
56 | //suite.addTest(OptionHandlersTest.suite()); |
---|
57 | |
---|
58 | // converters |
---|
59 | suite.addTest(weka.core.converters.AllTests.suite()); |
---|
60 | |
---|
61 | // neighboursearch |
---|
62 | suite.addTest(weka.core.neighboursearch.AllTests.suite()); |
---|
63 | |
---|
64 | // tokenizers |
---|
65 | suite.addTest(weka.core.tokenizers.AllTests.suite()); |
---|
66 | |
---|
67 | return suite; |
---|
68 | } |
---|
69 | |
---|
70 | /** |
---|
71 | * for running the tests from commandline |
---|
72 | * |
---|
73 | * @param args the commandline arguments - ignored |
---|
74 | */ |
---|
75 | public static void main(String []args) { |
---|
76 | junit.textui.TestRunner.run(suite()); |
---|
77 | } |
---|
78 | } |
---|