|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.runner.BaseTestRunner junit.textui.TestRunner frysk.junit.Runner
public class Runner
frysk specific extension to the JUnit test framework.
Field Summary | |
---|---|
private Prefix |
config32
|
private Prefix |
config64
|
private Prefix |
configAll
Possible configurations. |
private ArrayList |
excludeTests
|
private static Log |
fine
|
private ArrayList |
includeTests
|
private boolean |
listClassesOnly
|
private LinkedList |
otherArgs
|
private static String |
programBasename
|
private int |
repeatValue
|
private static boolean |
skipUnresolvedTests
Should the known-to-be-broken tests run? |
private Collection |
testCases
|
private String |
testFilter
|
Fields inherited from class junit.textui.TestRunner |
---|
EXCEPTION_EXIT, FAILURE_EXIT, SUCCESS_EXIT |
Fields inherited from class junit.runner.BaseTestRunner |
---|
SUITE_METHODNAME |
Constructor Summary | |
---|---|
Runner(String programBasename,
String[] args,
Prefix configAll,
Prefix config32,
Prefix config64)
Create a JUnit TestRunner, using command-line arguments args, and the supplied testClasses. |
Method Summary | |
---|---|
private Parser |
createCommandLineParser(String programName)
Create and return the command line parser used by frysk's JUnit tests. |
static String |
getProgramBasename()
Return the TestRunner's true basename - it could be "funit" or it could be "TestRunner". |
Collection |
getTestCases()
|
private int |
runCases(Collection testClasses)
|
int |
runTestCases(Collection tests)
Run the testcases carried by testClasses. |
void |
setTestCases(Collection testCases)
|
(package private) static boolean |
unresolved(int bug,
boolean unresolved)
A method that returns true, and reports "UNRESOLVED". |
(package private) static boolean |
unresolved(String bug,
boolean unresolved)
A method that returns true, and reports "UNRESOLVED". |
(package private) static boolean |
unsupported(String reason,
boolean unsupported)
An unsupported feature; can't test. |
static void |
usage(String message,
int exitVal)
|
private int |
worstResult(int lhs,
int rhs)
Merge two TestRunner results returning the most fatal. |
Methods inherited from class junit.textui.TestRunner |
---|
createTestResult, doRun, doRun, getLoader, main, pause, run, run, runAndWait, runFailed, setPrinter, start, testEnded, testFailed, testStarted |
Methods inherited from class junit.runner.BaseTestRunner |
---|
addError, addFailure, clearStatus, elapsedTimeAsString, endTest, extractClassName, getFilteredTrace, getFilteredTrace, getPreference, getPreference, getPreferences, getTest, inVAJava, loadSuiteClass, processArguments, savePreferences, setLoading, setPreference, setPreferences, showStackRaw, startTest, truncate, useReloadingTestSuiteLoader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Log fine
private int repeatValue
private Collection testCases
private boolean listClassesOnly
private String testFilter
private ArrayList excludeTests
private ArrayList includeTests
private LinkedList otherArgs
private static String programBasename
private final Prefix configAll
private final Prefix config32
private final Prefix config64
private static boolean skipUnresolvedTests
Constructor Detail |
---|
public Runner(String programBasename, String[] args, Prefix configAll, Prefix config32, Prefix config64)
Method Detail |
---|
public static void usage(String message, int exitVal)
public void setTestCases(Collection testCases)
public Collection getTestCases()
private int runCases(Collection testClasses)
private Parser createCommandLineParser(String programName)
public static String getProgramBasename()
private int worstResult(int lhs, int rhs)
public int runTestCases(Collection tests)
testClasses
-
static boolean unresolved(int bug, boolean unresolved)
static boolean unresolved(String bug, boolean unresolved)
static boolean unsupported(String reason, boolean unsupported)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |