|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.carrotsearch.ant.tasks.junit4.listeners.json.JsonReport
public class JsonReport
A report listener that produces a single JSON file for all suites and tests.
| Constructor Summary | |
|---|---|
JsonReport()
|
|
| Method Summary | |
|---|---|
void |
onQuit(AggregatedQuitEvent e)
All tests completed. |
void |
onSuiteResult(AggregatedSuiteResultEvent e)
Emit information about a single suite and all of its tests. |
void |
setFile(File file)
Output file for the report file. |
void |
setJsonpMethod(String method)
Sets wrapper method name for JSONP. |
void |
setOuter(JUnit4 junit4)
Link to the container. |
void |
setOutputStreams(boolean outputStreams)
Include output streams? Mind that with large outputs the report may OOM. |
void |
setProjectName(String projectName)
Set project name for the output model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsonReport()
| Method Detail |
|---|
public void setFile(File file)
public void setJsonpMethod(String method)
public void setProjectName(String projectName)
public void setOutputStreams(boolean outputStreams)
public void setOuter(JUnit4 junit4)
AggregatedEventListenerBuildException if
parameter validation doesn't succeed, for example.
setOuter in interface AggregatedEventListenerpublic void onSuiteResult(AggregatedSuiteResultEvent e)
public void onQuit(AggregatedQuitEvent e)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||