File tree Expand file tree Collapse file tree 13 files changed +49
-57
lines changed
robot/parsing/data_formats
testdata/parsing/data_formats/rest Expand file tree Collapse file tree 13 files changed +49
-57
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ${FORMATS DIR} ${DATA DIR}/parsing/data_formats
66${TSV DIR } ${FORMATS DIR } /tsv
77${TXT DIR } ${FORMATS DIR } /txt
88${ROBOT DIR } ${FORMATS DIR } /robot
9- ${REST DIR } ${FORMATS DIR } /rest_directives
9+ ${REST DIR } ${FORMATS DIR } /rest
1010${MIXED DIR } ${FORMATS DIR } /mixed_data
1111${RESOURCE DIR } ${FORMATS DIR } /resources
1212@{SAMPLE TESTS } Passing Failing User Keyword Nön-äscïï Own Tags Default Tags Variable Table
@@ -63,13 +63,3 @@ Check Suite With Init
6363 Should Be Equal ${suite.teardown } ${None }
6464 Should Contain Suites ${suite } Sub Suite1 Sub Suite2
6565 Should Contain Tests ${suite } @{SUBSUITE_TESTS }
66-
67- *** Keywords ***
68- Check Automatic Parsing Deprecated Message
69- [Arguments] ${index } ${path }
70- ${path } = Normalize Path ${path }
71- ${msg } = Catenate
72- ... Automatically parsing other than '*.robot' files is deprecated.
73- ... Convert '${path } ' to '*.robot' format or use '--extension' to
74- ... explicitly configure which files to parse.
75- Check Log Message @{ERRORS } [${index } ] ${msg } WARN
Original file line number Diff line number Diff line change @@ -10,14 +10,9 @@ ReST With reST Resource
1010 Previous Run Should Have Been Successful
1111 Check Test Case Resource File
1212
13- Parsing reST files automatically is deprecated
14- Previous Run Should Have Been Successful
15- Check Automatic Parsing Deprecated Message 0 ${RESTDIR } /sample.rst
16- Length should be ${ERRORS } 1
17-
18- Using --extension avoids deprecation warning
19- Run sample file and check tests --extension rst ${RESTDIR } /sample.rst
20- Length should be ${ERRORS } 0
21-
2213ReST Directory
2314 Run Suite Dir And Check Results ${EMPTY } ${RESTDIR }
15+
16+ Directory With reST Init
17+ Previous Run Should Have Been Successful
18+ Check Suite With Init ${SUITE.suites[1] }
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1- .. include :: ../rest/ empty.rest
1+ .. include :: empty.rest
22.. include :: include.rst
33
44ReST Test Data Example
Original file line number Diff line number Diff line change 1+ .. code :: robotframework
2+
3+ ** Settings **
4+ Suite Setup Suite Setup
5+ Documentation Testing suite init file
6+
7+ ** Variables **
8+ ${msg} = Running suite setup
9+
10+ ** Keywords **
11+ Suite Setup Log ${msg} # No more arguments!
Original file line number Diff line number Diff line change 1+ .. code :: robotframework
2+
3+ *Test Case* Whatever
4+ Suite1 Test No Operation
5+
Original file line number Diff line number Diff line change 1+ .. code :: robotframework
2+
3+ ********************* Test Cases* ***************************************
4+ | Suite2 Test | [Documentation] | FAIL | Expected failure |
5+ | | Fail | ${msg} | |
6+ | | | | | | | | | | |
7+
8+ ********************* Variables *****************************************
9+ | ${msg} | Expected failure |
You can’t perform that action at this time.
0 commit comments