Package org.testframe.engine
Class TestRunner
java.lang.Object
org.testframe.engine.TestRunner
Runs the tests in a test class. You can use the -enableassertions switch on
the command line, but that's not necessary, because this test runner makes
sure that assertions are turned on.
- Since:
- 1.0
- Author:
- Alonso del Arte
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TestRunner
public TestRunner()
-
-
Method Details
-
run
Runs the tests of a test class and reports the results.- Parameters:
testClassName
- The name of the test class. It needs to be fully qualified with all relevant package names. For example,"org.example.demo.textops.PalindromeCheckerTest"
.- Returns:
- A list of
TestResult
objects, one for each properly annotated public test procedure.
-
main
Runs the tests of a test class specified on the command line and reports the results.- Parameters:
args
- First the fully qualified name of the test class, then the command line options. For example, "org.example.demo.textops.PalindromeCheckerTest". For now, only the command line option "-sort", which sorts the test results so that passing tests are reported first and failing tests last, is supported. This option must be placed after the test class name.
-