com.gargoylesoftware.base.testing
Class RecursiveTestSuite

java.lang.Object
  extended byjunit.framework.TestSuite
      extended bycom.gargoylesoftware.base.testing.RecursiveTestSuite
All Implemented Interfaces:
junit.framework.Test

public class RecursiveTestSuite
extends junit.framework.TestSuite

A launching point for executing test cases. This recusively walks through the directory structure looking for classes that end in Test.class. It then loads these classes to see if they are instances of TestCase. If so, they are added to the test suite. Once all directories have been scanned, the test cases are executed.

Version:
$Revision: 1.4 $
Author:
Mike Bowler

Constructor Summary
RecursiveTestSuite(File startingPath, TestFilter testFilter)
          Create an instance
RecursiveTestSuite(String startingPath, TestFilter testFilter)
          Create a new instance
 
Method Summary
static void main(String[] args)
          Main entry point.
 void testFoo()
          Dummy test so that JUnit doesn't complain that this suite doesn't have any tests.
 
Methods inherited from class junit.framework.TestSuite
addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, run, runTest, setName, testAt, testCount, tests, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RecursiveTestSuite

public RecursiveTestSuite(String startingPath,
                          TestFilter testFilter)
                   throws IOException
Create a new instance

Parameters:
testFilter - The object that will filter out tests that we don't wish to run
startingPath - The directory that we will start our descent in.
Throws:
IOException - If anything goes wrong during the directory scanning.

RecursiveTestSuite

public RecursiveTestSuite(File startingPath,
                          TestFilter testFilter)
                   throws IOException
Create an instance

Parameters:
testFilter - The object that will filter out tests that we don't wish to run
startingPath - The directory that we will start our descent in.
Throws:
IOException - If anything goes wrong during the directory scanning.
Method Detail

main

public static void main(String[] args)
Main entry point.

Parameters:
args - The arguments

testFoo

public void testFoo()
Dummy test so that JUnit doesn't complain that this suite doesn't have any tests.



Copyright © 1998-2005 Gargoyle Software Inc.. All Rights Reserved.