blob: 1c2e88d702f006e5a1fda894589a3e7e7593757f (
plain) (
blame)
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
39
40
|
package com.iinteractive.test.tap
import com.iinteractive.test.Plan
/** An event emitted while parsing a TAP stream. */
sealed trait TAPEvent
/** The start of a TAP stream. */
case object StartEvent extends TAPEvent
/** The end of a TAP stream.
* @param result The [[com.iinteractive.test.tap.TAPResult TAPResult]]
* containing information about all of the tests which just
* finished running. This will be the same thing that is
* returned by the call to
* [[com.iinteractive.test.tap.Parser Parser]]'s `parse`
* method.
*/
case class EndEvent private[tap] (result: TAPResult) extends TAPEvent
/** An individual test result.
* @param result The [[com.iinteractive.test.tap.TestResult TestResult]]
* containing information about the corresponding test.
*/
case class ResultEvent private[tap] (result: TestResult) extends TAPEvent
/** A test plan.
* @param plan The [[com.iinteractive.test.Plan Plan]] corresponding to the
* line that was parsed.
*/
case class PlanEvent private[tap] (plan: Plan) extends TAPEvent
/** The start of a subtest (currently unused). */
case object SubtestStartEvent extends TAPEvent
/** The end of a subtest (currently unused). */
case class SubtestEndEvent private[tap] (result: TestResult) extends TAPEvent
/** A comment (currently unused). */
case class CommentEvent private[tap] (text: String) extends TAPEvent
|