Skip to content

Commit c45ce9d

Browse files
authored
Merge pull request #9 from theseion/add-isolated-and-tags
feat: add fields "isolated" and "tags"
2 parents 48cda85 + e716635 commit c45ce9d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

types/types.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ type FTWTestMeta struct {
7070
// - name: Version
7171
// value: "\"v1\""
7272
Version string `yaml:"version,omitempty"`
73+
74+
// description: |
75+
// Tags is list of strings that can be used for arbitrary grouping of tests.
76+
// examples:
77+
// - name: Tags
78+
// value: ["PHP", "bug-123"]
79+
Tags []string `yaml:"tags,omitempty"`
7380
}
7481

7582
// Test is an individual test case. One test can have multiple stages.
@@ -111,6 +118,13 @@ type Test struct {
111118
// examples:
112119
// - value: ExampleStages
113120
Stages []Stage `yaml:"stages"`
121+
122+
// description: |
123+
// Tags is list of strings that can be used for arbitrary grouping of tests.
124+
// examples:
125+
// - name: Tags
126+
// value: ["PHP", "bug-123"]
127+
Tags []string `yaml:"tags,omitempty"`
114128
}
115129

116130
// IdString prints the human readable ID of a test in the format
@@ -279,6 +293,16 @@ type Input struct {
279293
//
280294
// Deprecated: use `encoded_request`
281295
RAWRequest string `yaml:"raw_request,omitempty" koanf:"raw_request,omitempty"`
296+
297+
// description: |
298+
// Isolated specifies that the test is expected to trigger a single rule only.
299+
// If the rule triggers any other rule than the (single) one specified in
300+
// expect_ids, the test fill be considered a failure.
301+
// Default: false
302+
// examples:
303+
// - name: Isolated
304+
// value: true
305+
Isolated bool `yaml:"isolated,omitempty" koanf:"isolated, omitempty"`
282306
}
283307

284308
// Output is the response expected from the test

0 commit comments

Comments
 (0)