Methods Summary |
---|
public void | addError(junit.framework.Test test, java.lang.Throwable t)
current.res = -1;
|
public void | addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
current.res = -2;
|
private long | currentTimeMillis()
if (havePreciseTime) {
return VMDebug.threadCpuTimeNanos() / 1000;
} else {
return System.currentTimeMillis();
}
|
synchronized void | digest()
int totalCnt = 0;
int adhocRelevantCnt = 0;
int histRelevantCnt = 0;
long evalStartTime = System.currentTimeMillis();
PrintStream out = fWriter;
out.println("Failure and Performance Statistics:");
Iterator<Item> r = items.iterator();
while (r.hasNext()) {
Item item = r.next();
item.update(listBad, thresholdDuration);
if (item.histRelevance != 0) {
item.print(out, bigMarking);
histRelevantCnt++;
}
if (item.adhocRelevance != 0) {
if (item.checkPrint(out))
adhocRelevantCnt++;
}
if (listAll) item.checkPrint(out);
totalCnt++;
}
long evalDuration = System.currentTimeMillis() - evalStartTime;
out.println();
out.print(totalCnt); out.println(" tests run totally.");
out.print(histRelevantCnt);
out.println(" tests listed due to historical relevance.");
// out.print(adhocRelevantCnt);
// out.println(" tests listed due to ad-hoc-relevance.");
// out.print(totalCnt - histRelevantCnt - adhocRelevantCnt);
// out.println(" tests NOT listed due to relevance.");
out.println();
out.print("Time used in Statistics Acquisition: ");
out.print(evalDuration);
out.print("ms");
out.println();
|
public void | endTest(junit.framework.Test test)
current.duration = currentTimeMillis() - current.startTime;
|
public java.io.PrintStream | getWriter()
return fWriter;
|
public void | startTest(junit.framework.Test test)
System.gc();
current = new Item();
current.test = test;
current.startTime = currentTimeMillis();
items.add(current);
|