UNPKG

1.18 kBYAMLView Raw
1---
2id: testcase.json
3"$schema": "http://json-schema.org/draft-04/schema"
4title: Testcase
5description: "A single test case"
6type: object
7properties:
8 # mandatory
9 name:
10 type: string
11 description: 'Name of this testcase/scenario'
12 assertion:
13 type: string
14 description: 'Description of what this testcase asserts'
15 inputs:
16 description: 'The inputs send to the fixture input ports, or a sequence of such inputs'
17 oneOf:
18 - # inputsdata
19 type: object
20 - # sequence of inputsdata
21 type: array
22 items:
23 type: object
24 expect:
25 description: |
26 Expected data on fixture output ports.
27 Can either be an object, or a sequence of such objects.
28 oneOf:
29 - "$ref": "outputdata.json"
30 - # sequence of expectdata
31 type: array
32 items:
33 - "$ref": "outputdata.json"
34
35 # optional
36 timeout:
37 type: number
38 description: 'Timeout (in milliseconds). Overrides that set in the suite'
39 default: 2000
40 skip:
41 type: string
42 description: |
43 Flag to skip testcase.
44 Should be a description of the reason for skipping.
45
46required: [name, assertion, inputs, expect]