You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using data-driven style tests, and including [Tags], robocop gives errors like foobar.robot:15:37 [W] 1008 Line is over-indented (bad-indent)
For the robot file:
*** Settings ***Test Template Login with invalid credentials should fail
*** Test Cases *** USERNAME PASSWORDInvalid User Name[Tags] foo
invalid ${VALID PASSWORD}Invalid Password [Documentation] foo
[Tags] bar${VALID USER} invalid
Invalid User Name and Password[Tags] baz
invalid invalid
Empty User Name${EMPTY}${VALID PASSWORD}Empty Password${VALID USER}${EMPTY}[Tags] spam eggsEmpty User Name and Password${EMPTY}${EMPTY}*** Keywords ***Login With Invalid Credentials Should Fail[Arguments]${username}${password}
No Operation
Editing the lines with errors (removing spaces until it no longer gives any indentation related errors) gives the following. It looks like it is subtracting the length of the test case name from the number of required spaces.
*** Settings ***Test Template Login with invalid credentials should fail
*** Test Cases *** USERNAME PASSWORDInvalid User Name[Tags] foo
invalid ${VALID PASSWORD}Invalid Password [Documentation] foo
[Tags] bar${VALID USER} invalid
Invalid User Name and Password[Tags] baz
invalid invalid
Empty User Name${EMPTY}${VALID PASSWORD}Empty Password${VALID USER}${EMPTY}[Tags] spam eggsEmpty User Name and Password${EMPTY}${EMPTY}*** Keywords ***Login With Invalid Credentials Should Fail[Arguments]${username}${password}
No Operation
What happened?
When using data-driven style tests, and including
[Tags]
, robocop gives errors likefoobar.robot:15:37 [W] 1008 Line is over-indented (bad-indent)
For the robot file:
Editing the lines with errors (removing spaces until it no longer gives any indentation related errors) gives the following. It looks like it is subtracting the length of the test case name from the number of required spaces.
Related robotidy issue: MarketSquare/robotframework-tidy#443
Operating System
No response
Robocop version
2.6.0
The text was updated successfully, but these errors were encountered: