001: package net.firstpartners.nounit.test;
002:
003: /**
004: * Title: NoUnit - Identify Classes that are not being unit Tested
005: *
006: * Copyright (C) 2001 Paul Browne , FirstPartners.net
007: *
008: *
009: * This program is free software; you can redistribute it and/or
010: * modify it under the terms of the GNU General Public License
011: * as published by the Free Software Foundation; either version 2
012: * of the License, or (at your option) any later version.
013: *
014: * This program is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
017: * GNU General Public License for more details.
018: *
019: * You should have received a copy of the GNU General Public License
020: * along with this program; if not, write to the Free Software
021: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
022: *
023: * @author Paul Browne
024: * @version 0.7
025: */
026:
027: import junit.framework.*;
028:
029: /**
030: * Junit TestSuite that runs all the sample tests in the NoUnit Project
031: */
032:
033: public class AllTests extends TestCase {
034:
035: /**
036: * Initialises the Class
037: *
038: */
039: public AllTests() {
040: super ("");
041: }
042:
043: /**
044: * Constructor Required by Junit
045: * @param name
046: */
047: public AllTests(String name) {
048: super (name);
049: }
050:
051: /**
052: * Enable the Tests to be run from the command line
053: * @param args
054: */
055: public static void main(String args[]) {
056:
057: junit.textui.TestRunner.run(suite());
058:
059: }
060:
061: /**
062: * Test suite contains all tests to be run
063: * @return suite containing all JUnit tests to be run for this project
064: */
065: public static Test suite() {
066:
067: TestSuite suite = new TestSuite("All JUnit Tests");
068:
069: // Utility
070: suite
071: .addTest(net.firstpartners.nounit.utility.test.TestNoUnitException
072: .suite());
073: suite
074: .addTest(net.firstpartners.nounit.utility.test.TestCollectionUtil
075: .suite());
076: suite
077: .addTest(net.firstpartners.nounit.utility.test.TestDirectoryWalker
078: .suite());
079: suite.addTest(net.firstpartners.nounit.utility.test.TestXmlUtil
080: .suite());
081:
082: //Main Command Line
083: suite
084: .addTest(net.firstpartners.nounit.ui.command.test.TestCommandLineProcessor
085: .suite());
086:
087: //Snippets
088: suite
089: .addTest(net.firstpartners.nounit.snippet.test.TestSnippets
090: .suite());
091: suite
092: .addTest(net.firstpartners.nounit.snippet.test.TestSnippetMethod
093: .suite());
094: suite
095: .addTest(net.firstpartners.nounit.snippet.test.TestSnippetClass
096: .suite());
097: suite
098: .addTest(net.firstpartners.nounit.snippet.test.TestSnippetPackage
099: .suite());
100: suite
101: .addTest(net.firstpartners.nounit.snippet.test.TestSnippetProject
102: .suite());
103: suite
104: .addTest(net.firstpartners.nounit.snippet.test.TestSnippetCalls
105: .suite());
106:
107: //Reader Tests
108: suite
109: .addTest(net.firstpartners.nounit.reader.bytecode.test.TestByteCodeMethodSnippetFactory
110: .suite());
111: suite
112: .addTest(net.firstpartners.nounit.reader.bytecode.test.TestByteCodeClassSnippetFactory
113: .suite());
114: suite
115: .addTest(net.firstpartners.nounit.reader.bytecode.test.TestByteCodePackageSnippetFactory
116: .suite());
117: suite
118: .addTest(net.firstpartners.nounit.reader.bytecode.test.TestByteCodeProjectSnippetFactory
119: .suite());
120: suite
121: .addTest(net.firstpartners.nounit.reader.bytecode.test.TestByteCodeCallsSnippetFactory
122: .suite());
123:
124: //Reports
125: suite
126: .addTest(net.firstpartners.nounit.report.process.test.TestCallChainer
127: .suite());
128:
129: return suite;
130:
131: }
132:
133: }
|