public abstract class BaseRunner extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
defaultTestTimeoutMillis |
protected static String |
ENCODING |
protected boolean |
isDryRun |
protected File |
outputDirectory |
protected static String[] |
RUNNER_CAPABILITIES |
protected boolean |
shouldExplainTestSelectors |
protected List<String> |
testClassNames |
protected TestSelectorList |
testSelectorList |
Constructor and Description |
---|
BaseRunner() |
Modifier and Type | Method and Description |
---|---|
protected void |
parseArgs(String... args)
Expected arguments are:
(string) output directory
(long) default timeout in milliseconds (0 for no timeout)
(string) newline separated list of test selectors
(string...) fully-qualified names of test classes
|
abstract void |
run() |
protected void |
runAndExit() |
protected void |
writeResult(String testClassName,
Collection<com.facebook.buck.testrunner.TestResult> results)
The test result file is written as XML to avoid introducing a dependency on JSON (see class
overview).
|
protected static final String ENCODING
protected static final String[] RUNNER_CAPABILITIES
protected File outputDirectory
protected long defaultTestTimeoutMillis
protected TestSelectorList testSelectorList
protected boolean isDryRun
protected boolean shouldExplainTestSelectors
protected void writeResult(String testClassName, Collection<com.facebook.buck.testrunner.TestResult> results) throws IOException, ParserConfigurationException, TransformerException
protected void parseArgs(String... args)
protected void runAndExit()