-
Notifications
You must be signed in to change notification settings - Fork 929
/
testing.contra
65 lines (53 loc) · 1.58 KB
/
testing.contra
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package sbt.protocol.testing
@target(Scala)
@codecPackage("sbt.protocol.testing.codec")
@fullCodec("JsonProtocol")
## Events for testing
interface TestMessage {
}
type TestStringEvent implements TestMessage {
value: String!
#xtostring value
}
## Called once, at beginning of the testing.
type TestInitEvent implements TestMessage {}
## Called once, at end of the testing.
type TestCompleteEvent implements TestMessage {
result: sbt.protocol.testing.TestResult!
}
## Called for each class or equivalent grouping.
type StartTestGroupEvent implements TestMessage {
name: String!
}
## Called if test completed.
type EndTestGroupEvent implements TestMessage {
name: String!
result: sbt.protocol.testing.TestResult!
}
## Called if test completed with an error.
type EndTestGroupErrorEvent implements TestMessage {
name: String!
error: String!
}
## Called for each test method or equivalent.
type TestItemEvent implements TestMessage {
result: sbt.protocol.testing.TestResult
detail: [sbt.protocol.testing.TestItemDetail]
}
## Mini version of sbt.testing.Event
type TestItemDetail {
## The fully qualified name of a class that can rerun the suite or test
## about which an event was fired.
fullyQualifiedName: String!
## Indicates whether the event represents a test success, failure, error, skipped, ignored, canceled, pending.
status: sbt.testing.Status!
## An amount of time, in milliseconds, that was required to complete the action reported by this event.
## None, if no duration was available.
duration: Long
}
## Testing result
enum TestResult {
Passed
Failed
Error
}