public class JUnitTclTestBase
extends java.lang.Object
Derived classes should have a method that calls super.run().
If the fileName JVM property is set, then the file named by that property is sourced. Otherwise, the testDefs.tcl file is sourced and the doallTests Tcl proc that is defined in $PTII/util/testsuite/testDefs.tcl is invoked and then any models in the auto/ directory are invoked.
For example, ptolemy.kernel.test.junit.JUnitTclTest extends this class. To run one test file (Port.tcl):
cd $PTII java -DfileName=Port.tcl -classpath ${PTII}:${PTII}/bin/ptjacl.jar:${PTII}/lib/junit-4.8.2.jar:${PTII}/lib/JUnitParams-0.3.0.jar org.junit.runner.JUnitCore ptolemy.kernel.test.junit.JUnitTclTest
To run all the .tcl files in the directory above this directory:
cd $PTII java -classpath ${PTII}:${PTII}/bin/ptjacl.jar:${PTII}/lib/junit-4.8.2.jar:${PTII}/lib/JUnitParams-0.3.0.jar org.junit.runner.JUnitCore ptolemy.kernel.test.junit.JUnitTclTest
Constructor and Description |
---|
JUnitTclTestBase() |