diff options
Diffstat (limited to 'src/cz/crcs/ectester/common/output/TestWriter.java')
| -rw-r--r-- | src/cz/crcs/ectester/common/output/TestWriter.java | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/cz/crcs/ectester/common/output/TestWriter.java b/src/cz/crcs/ectester/common/output/TestWriter.java index 0ecfd5a..eb95804 100644 --- a/src/cz/crcs/ectester/common/output/TestWriter.java +++ b/src/cz/crcs/ectester/common/output/TestWriter.java @@ -7,9 +7,33 @@ import cz.crcs.ectester.common.test.TestSuite; * @author Jan Jancar johny@neuromancer.sk */ public interface TestWriter { + /** + * Begin writing the <code>TestSuite suite</code>. + * This should reset all the internal state of the writer + * and prepare it to output tests from <code>suite</code>. + * It may also write any header part of the output of the + * writer but doesn't have to. + * + * @param suite The <code>TestSuite</code> to start writing. + */ void begin(TestSuite suite); - void outputTest(Test t); + /** + * + * @param t + * @param index + */ + void outputTest(Test t, int index); + /** + * @param t + * @param cause + * @param index + */ + void outputError(Test t, Throwable cause, int index); + + /** + * + */ void end(); } |
