@@ -22,6 +22,12 @@ ${INPUT FILE} %{TEMPDIR}${/}robot-test-file.xml
2222 Run And Check Tests --test *one --test Fi?st First Second One Third One
2323 Run And Check Tests --test [Great]Lob[sterB]estCase[!3-9] GlobTestCase1 GlobTestCase2
2424
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+
2531--test not matching
2632 Failing Rebot
2733 ... Suite 'Root' contains no tests matching name 'nonex'.
@@ -71,13 +77,30 @@ ${INPUT FILE} %{TEMPDIR}${/}robot-test-file.xml
7177 ... --name CustomName --suite nonex ${INPUT FILE } ${INPUT FILE }
7278
7379--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
7586
7687--suite and --test together not matching
7788 Failing Rebot
7889 ... Suite 'Root' contains no tests matching name 'first', 'nonex' or '*one' in suites 'nonex' or 'suites'.
7990 ... --suite nonex --suite suites --test first --test nonex --test *one ${INPUT FILE }
8091
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+
81104Elapsed Time
82105 [Documentation] Test setting start, end and elapsed times correctly when filtering by tags
83106 # 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
129152 Should Contain Suites ${SUITE.suites[0] } @{suites }
130153 Check Stats
131154
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-
140155Run Suites
141156 [Arguments] ${options }
142157 Run Rebot ${options } ${INPUT FILE }
0 commit comments