Skip to content

Commit 104213a

Browse files
committed
test: align robotframework integration expected with full suite hierarchy
The previous expected file was generated under the bug where only the leaf suite was reported. Now that the listener preserves the full hierarchy from the run root, the validator receives the directory-level "Tests" suite as data[0] and the file-level "Steps" suite as data[1], matching the layout used by the pytest and tavern expected files. Signatures move from "<id>::steps::<name>" to "<id>::tests::steps::<name>" because they include every suite in order.
1 parent d9b030a commit 104213a

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

integration/robot/expected/robot-examples.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ run:
99
total: 4
1010
results:
1111
- title: Test With Failing Step
12-
signature: 302::steps::test_with_failing_step
12+
signature: 302::tests::steps::test_with_failing_step
1313
testops_ids:
1414
- 302
1515
status: invalid
@@ -18,6 +18,7 @@ results:
1818
relations:
1919
suite:
2020
data:
21+
- title: Tests
2122
- title: Steps
2223
steps:
2324
- data:
@@ -39,7 +40,7 @@ results:
3940
execution:
4041
status: failed
4142
- title: Test With Multiple Steps
42-
signature: 301::steps::test_with_multiple_steps
43+
signature: 301::tests::steps::test_with_multiple_steps
4344
testops_ids:
4445
- 301
4546
status: passed
@@ -48,6 +49,7 @@ results:
4849
relations:
4950
suite:
5051
data:
52+
- title: Tests
5153
- title: Steps
5254
steps:
5355
- data:
@@ -78,7 +80,7 @@ results:
7880
execution:
7981
status: passed
8082
- title: Test With Single Tag
81-
signature: 901::steps::test_with_single_tag
83+
signature: 901::tests::steps::test_with_single_tag
8284
testops_ids:
8385
- 901
8486
status: passed
@@ -88,9 +90,10 @@ results:
8890
relations:
8991
suite:
9092
data:
93+
- title: Tests
9194
- title: Steps
9295
- title: Test With Multiple Tags
93-
signature: 902::steps::test_with_multiple_tags
96+
signature: 902::tests::steps::test_with_multiple_tags
9497
testops_ids:
9598
- 902
9699
status: passed
@@ -100,4 +103,5 @@ results:
100103
relations:
101104
suite:
102105
data:
106+
- title: Tests
103107
- title: Steps

0 commit comments

Comments
 (0)