Skip to content

Commit a5306fb

Browse files
committed
Make .robot the only default test extension
Also allow any extension to be explicitly defined when using a full path to a file or when using `--extension` command line option Fixes robotframework#3269
1 parent 1c4c5d6 commit a5306fb

File tree

14 files changed

+25
-33
lines changed

14 files changed

+25
-33
lines changed

atest/robot/cli/runner/extension.robot

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ One extension
1313
Multiple extensions
1414
-F robot:txt:.ROBOT 44
1515

16-
Invalid extension
17-
[Template] NONE
18-
Run Tests Without Processing Output --extension invalid ${DATA FORMATS}
19-
Stderr Should Be Equal To [ ERROR ] Invalid extension to limit parsing 'invalid'.${USAGE TIP}\n
16+
Any extension is accepted
17+
--extension bar 1
18+
--extension FoO:bar 2
2019

2120
*** Keywords ***
2221
Expected number of tests should be run

atest/robot/cli/runner/rerunfailed.robot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ Suite teardown failures are noticed
3535
*** Keywords ***
3636
Suite initialization
3737
Copy Directory ${ORIG DIR}/suite ${SUITE DIR}
38-
Copy File ${ORIG DIR}/runfailed1.robot ${SUITE DIR}/runfailed.txt
38+
Copy File ${ORIG DIR}/runfailed1.robot ${SUITE DIR}/runfailed.robot
3939
Run Tests ${EMPTY} ${SUITE DIR}
4040
Copy File ${OUTFILE} ${RUN FAILED FROM}
41-
Copy File ${ORIG DIR}/runfailed2.robot ${SUITE DIR}/runfailed.txt
41+
Copy File ${ORIG DIR}/runfailed2.robot ${SUITE DIR}/runfailed.robot
4242
Run Tests --rerunfailed ${RUN FAILED FROM} --test Selected --exclude excluded_tag ${SUITE DIR}
4343

4444
Test Should Have Been Executed

atest/robot/cli/runner/rerunfailedsuites.robot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ Non-existing failing from output file is not executed
2929
*** Keywords ***
3030
Suite initialization
3131
Copy Directory ${ORIG DIR}/suite ${SUITE DIR}
32-
Copy File ${ORIG DIR}/runfailed1.robot ${SUITE DIR}/runfailed.txt
32+
Copy File ${ORIG DIR}/runfailed1.robot ${SUITE DIR}/runfailed.robot
3333
Run Tests ${SUITE DIR}
3434
Copy File ${OUTFILE} ${RUN FAILED FROM}
35-
Copy File ${ORIG DIR}/runfailed2.robot ${SUITE DIR}/runfailed.txt
35+
Copy File ${ORIG DIR}/runfailed2.robot ${SUITE DIR}/runfailed.robot
3636
Run Tests --rerunfailedsuites ${RUN FAILED FROM} --noncritical non_critical --exclude excluded_tag ${SUITE DIR}
3737

3838
Test Should Have Been Executed

atest/robot/parsing/data_formats/mixed.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
*** Settings ***
22
Resource formats_resource.robot
3-
Suite Setup Run tests ${EMPTY} ${MIXEDDIR}
3+
Suite Setup Run tests -F txt:tsv ${MIXEDDIR}
44

55
*** Variables ***
66
@{TSV TESTS} TSV Passing TSV Failing TXT Resource

atest/robot/parsing/data_formats/rest.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ReST With reST Resource
1111
Check Test Case Resource File
1212

1313
ReST Directory
14-
Run Suite Dir And Check Results ${EMPTY} ${RESTDIR}
14+
Run Suite Dir And Check Results -F rst:rest ${RESTDIR}
1515

1616
Directory With reST Init
1717
Previous Run Should Have Been Successful
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*** Test cases ***
2+
Foo.Bar test
3+
No Operation

atest/testdata/parsing/data_formats/rest/with_init/sub_suite1.rst renamed to atest/testdata/parsing/data_formats/rest/with_init/sub_suite1.RST

File renamed without changes.

atest/testdata/parsing/data_formats/robot/with_init/sub_suite1.robot renamed to atest/testdata/parsing/data_formats/robot/with_init/sub_suite1.ROBOT

File renamed without changes.

atest/testdata/parsing/data_formats/tsv/with_init/sub_suite1.tsv renamed to atest/testdata/parsing/data_formats/tsv/with_init/sub_suite1.TSV

File renamed without changes.

atest/testdata/parsing/data_formats/txt/with_init/sub_suite1.txt renamed to atest/testdata/parsing/data_formats/txt/with_init/sub_suite1.TXT

File renamed without changes.

0 commit comments

Comments
 (0)