public class ExecutionTimesReport extends Object implements AggregatedEventListener
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_HISTORY_LENGTH |
Constructor and Description |
---|
ExecutionTimesReport() |
Modifier and Type | Method and Description |
---|---|
static Map<String,List<Long>> |
mergeHints(Collection<org.apache.tools.ant.types.ResourceCollection> resources,
Collection<String> suiteNames)
Read hints from all resources in a collection, retaining
suiteNames . |
static void |
mergeHints(InputStream is,
Map<String,List<Long>> hints)
Read hints from a file and merge with the given hints map.
|
void |
onEnd(AggregatedQuitEvent e)
Write back to hints file.
|
void |
onSuiteResult(AggregatedSuiteResultEvent e)
Remember execution time for all executed suites.
|
static Map<String,List<Long>> |
readHints(File hints)
Read hints from a file.
|
void |
setFile(File hintsFile)
Hints file (key-value pairs).
|
void |
setHistoryLength(int length)
How many execution times to store per-suite? The history must be larger than 0.
|
void |
setOuter(JUnit4 outer)
Link to the container.
|
static void |
writeHints(File file,
Map<String,List<Long>> hints)
Writes back hints file.
|
public static final int DEFAULT_HISTORY_LENGTH
setHistoryLength(int)
,
Constant Field Valuespublic void setFile(File hintsFile)
public void setHistoryLength(int length)
public void onSuiteResult(AggregatedSuiteResultEvent e)
public void onEnd(AggregatedQuitEvent e)
public void setOuter(JUnit4 outer) throws org.apache.tools.ant.BuildException
AggregatedEventListener
BuildException
if
parameter validation doesn't succeed, for example.setOuter
in interface AggregatedEventListener
org.apache.tools.ant.BuildException
public static Map<String,List<Long>> readHints(File hints) throws IOException
IOException
public static void mergeHints(InputStream is, Map<String,List<Long>> hints) throws IOException
IOException
public static void writeHints(File file, Map<String,List<Long>> hints) throws IOException
IOException
public static Map<String,List<Long>> mergeHints(Collection<org.apache.tools.ant.types.ResourceCollection> resources, Collection<String> suiteNames)
suiteNames
. If suiteNames
is null,
everything is retained.Copyright © 2011–2015 Carrot Search s.c.. All rights reserved.