@@ -22,6 +22,12 @@ ${INPUT FILE} %{TEMPDIR}${/}robot-test-file.xml
22
22
Run And Check Tests --test *one --test Fi?st First Second One Third One
23
23
Run And Check Tests --test [Great]Lob[sterB]estCase[!3-9] GlobTestCase1 GlobTestCase2
24
24
25
+ --test is cumulative with --include
26
+ Run And Check Tests --test fifth --include t2 First Fifth Suite1 Second SubSuite3 Second
27
+
28
+ --exclude wins ovet --test
29
+ Run And Check Tests --test fi* --exclude t1 Fifth
30
+
25
31
--test not matching
26
32
Failing Rebot
27
33
... Suite 'Root' contains no tests matching name 'nonex'.
@@ -71,13 +77,30 @@ ${INPUT FILE} %{TEMPDIR}${/}robot-test-file.xml
71
77
... --name CustomName --suite nonex ${INPUT FILE } ${INPUT FILE }
72
78
73
79
--suite and --test together
74
- Run And Check Suites and Tests --suite tsuite1 --suite tsuite3 --test *1first --test nomatch Tsuite1 Suite1 First
80
+ [Documentation] Validate that only tests matching --test under suites matching --suite are selected.
81
+ Run Suites --suite root.*.tsuite2 --suite manytests --test *first* --test nomatch --log log
82
+ Should Contain Suites ${SUITE } Many Tests Suites
83
+ Should Contain Tests ${SUITE.suites[0] } First
84
+ Should Contain Tests ${SUITE.suites[1] } Suite2 First
85
+ Check Stats
75
86
76
87
--suite and --test together not matching
77
88
Failing Rebot
78
89
... Suite 'Root' contains no tests matching name 'first', 'nonex' or '*one' in suites 'nonex' or 'suites'.
79
90
... --suite nonex --suite suites --test first --test nonex --test *one ${INPUT FILE }
80
91
92
+ --suite with --include/--exclude
93
+ Run Suites --suite tsuite[13] --include t? --exclude t2
94
+ Should Contain Suites ${SUITE } Suites
95
+ Should Contain Suites ${SUITE.suites[0] } Tsuite1 Tsuite3
96
+ Should Contain Tests ${SUITE } Suite1 First Suite3 First
97
+
98
+ --suite, --test, --include and --exclude
99
+ Run Suites --suite sub* --suite "custom name *" --test *first -s nomatch -t nomatch --include sub3 --exclude t1
100
+ Should Contain Suites ${SUITE } Suites
101
+ Should Contain Suites ${SUITE.suites[0] } Custom name for 📂 'subsuites2' Subsuites
102
+ Should Contain Tests ${SUITE } SubSuite2 First SubSuite3 Second
103
+
81
104
Elapsed Time
82
105
[Documentation] Test setting start, end and elapsed times correctly when filtering by tags
83
106
# 1) Rebot hand-edited output with predefined times and check that times are read correctly. (A sanity check)
@@ -129,14 +152,6 @@ Run and Check Suites
129
152
Should Contain Suites ${SUITE.suites[0] } @{suites }
130
153
Check Stats
131
154
132
- Run And Check Suites and Tests
133
- [Arguments] ${params } ${subsuite } @{tests }
134
- Run Suites ${params }
135
- Should Contain Suites ${SUITE.suites[0] } ${subsuite }
136
- Should Contain Tests ${SUITE } @{tests }
137
- Should Be True ${SUITE.statistics.passed } == len(@{tests } )
138
- Check Stats
139
-
140
155
Run Suites
141
156
[Arguments] ${options }
142
157
Run Rebot ${options } ${INPUT FILE }
0 commit comments