diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2023-11-29 00:50:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-28 22:50:25 +0000 |
| commit | 56651724ad22f2769bbdaccf54cbe75c1cb35c91 (patch) | |
| tree | 9fef201e58833b3f77e387a3f72706cd0db3f0e2 /test | |
| parent | 5e894a270b73128d28b55c3067e4bf6aaace9039 (diff) | |
Add support for Robot Framework files with `robotidy` (#263)
Diffstat (limited to 'test')
| -rw-r--r-- | test/formatters/installers/robotidy.bash | 2 | ||||
| -rw-r--r-- | test/formatters/samplecode/robotidy/in.robot | 22 | ||||
| -rw-r--r-- | test/formatters/samplecode/robotidy/out.robot | 24 |
3 files changed, 48 insertions, 0 deletions
diff --git a/test/formatters/installers/robotidy.bash b/test/formatters/installers/robotidy.bash new file mode 100644 index 0000000..88d6ba2 --- /dev/null +++ b/test/formatters/installers/robotidy.bash @@ -0,0 +1,2 @@ +apt-get install -y python3-pip +python3 -m pip install robotframework-tidy diff --git a/test/formatters/samplecode/robotidy/in.robot b/test/formatters/samplecode/robotidy/in.robot new file mode 100644 index 0000000..a12044d --- /dev/null +++ b/test/formatters/samplecode/robotidy/in.robot @@ -0,0 +1,22 @@ +Force Tags tags tag2 +Library Collections +Resource important.robot +Library MyCustomLibrary.py + +Test Setup Setup Keyword + + +*** test case* +Test1 + [ teardown] Teardown Keyword + Keyword + FOR ${var} IN RANGE 10 + Run Keyword If ${var}>5 Other Keyword + END +*** Variables *** +${var}= 2 +${bit_longer} 10 +${var2} a +... b + +*** Keywords *** diff --git a/test/formatters/samplecode/robotidy/out.robot b/test/formatters/samplecode/robotidy/out.robot new file mode 100644 index 0000000..9a74545 --- /dev/null +++ b/test/formatters/samplecode/robotidy/out.robot @@ -0,0 +1,24 @@ +*** Comments *** +Force Tags tags tag2 +Library Collections +Resource important.robot +Library MyCustomLibrary.py + +Test Setup Setup Keyword + + +*** Variables *** +${var}= 2 +${bit_longer} 10 +${var2} a +... b + + +*** Test Cases *** +Test1 + Keyword + FOR ${var} IN RANGE 10 + IF ${var}>5 Other Keyword + END + [Teardown] Teardown Keyword + |
