01: /* Formatter.java */
02:
03: package org.quilt.reports;
04:
05: import java.io.OutputStream;
06:
07: import junit.framework.TestListener;
08: import org.apache.tools.ant.BuildException;
09:
10: import org.quilt.framework.QuiltTest;
11: import org.quilt.runner.Runner;
12:
13: /**
14: * Interface presented by all Ant/Quilt-compatible test result formatters.
15: * Extend BaseFormatter to build new formatters.
16: */
17:
18: public interface Formatter extends TestListener {
19: /** Enable filtering of Ant/Quilt/JUnit lines from stack traces. */
20: public void setFiltertrace(boolean b);
21:
22: public void setOutput(OutputStream out);
23:
24: /** Select test runner to use. */
25: public void setRunner(Runner testrunner);
26:
27: public void setSystemError(String err);
28:
29: public void setSystemOutput(String out);
30:
31: /** Called at beginning of test suite run. */
32: public void startTestSuite(QuiltTest suite) throws BuildException;
33:
34: /** Called at end of test suite run. */
35: public void endTestSuite(QuiltTest suite) throws BuildException;
36: }
|