blob: 67aeccbbb6984e0dc7cc53cfa1e86edfb4ef2b52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
package cz.crcs.ectester.common.output;
import cz.crcs.ectester.common.test.Test;
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);
/**
* @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();
}
|