|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jorphan.test.AllTests
Provides a quick and easy way to run all junit unit tests in your java project. It will find all unit test classes and run all their test methods. There is no need to configure it in any way to find these classes except to give it a path to search.
Here is an example Ant target (See Ant at Apache) that runs all your unit tests:
<target name="test" depends="compile"> <java classname="org.apache.jorphan.test.AllTests" fork="yes"> <classpath> <path refid="YOUR_CLASSPATH"/> <pathelement location="ROOT_DIR_OF_YOUR_COMPILED_CLASSES"/> </classpath> <arg value="SEARCH_PATH/"/> <arg value="PROPERTY_FILE"/> <arg value="NAME_OF_UNITTESTMANAGER_CLASS"/> </java> </target>
UnitTestManager
interface and be given an
opportunity to initialize your system from a configuration file.
UnitTestManager
Method Summary | |
protected static void |
initializeLogging(String[] args)
An overridable method that initializes the logging for the unit test run, using the properties file passed in as the second argument. |
protected static void |
initializeManager(String[] args)
An overridable method that that instantiates a UnitTestManager (if one was specified in the command-line arguments), and hands it the name of the properties file to use to configure the system. |
static void |
main(String[] args)
Starts a run through all unit tests found in the specified classpaths. |
static junit.framework.TestSuite |
suite()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void main(String[] args)
args
- the command line argumentsprotected static void initializeLogging(String[] args)
args
- protected static void initializeManager(String[] args)
args
- public static junit.framework.TestSuite suite()
|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |