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
I'd like to request a new linter rule. Currently the rule TooManyTestSteps applies to regular Test Cases as well as test-template test cases; I'd like to restrict TooManyTestSteps to apply only to regular Test Cases and a new, separate rule TooManyTemplateDataRows to apply to only to test-templates.
Reasoning
A new rule would be more consistent with the Robot Framework documentation. When a regular test case is too long, it has "too many steps", but test-templates are different. According to the User Guide section on test-templates, a test-template body consists of data rows, not "steps", so the TooManyTestSteps rule technically doesn't apply to a templated test case. A separate TooManyTemplateDataRows rule for templated test cases would be more consistent with existing RobotFramework documentation.
Additionally, it may be desirable to restrict templated test cases to a different length than regular test cases. When regular test cases have too many steps, they're dense and unreadable. But the bare, tabular format of the test-template syntax can contain many more data rows and still look clean. A separate rule would give developers the option to keep Test Cases short and sweet while allowing templates to breathe a little bit.
Defaults
Since TooManyTestSteps defaults to 10, a TooManyTemplateDataRows rule could sensibly default to 15.
The text was updated successfully, but these errors were encountered:
Request
I'd like to request a new linter rule. Currently the rule
TooManyTestSteps
applies to regular Test Cases as well as test-template test cases; I'd like to restrictTooManyTestSteps
to apply only to regular Test Cases and a new, separate ruleTooManyTemplateDataRows
to apply to only to test-templates.Reasoning
A new rule would be more consistent with the Robot Framework documentation. When a regular test case is too long, it has "too many steps", but test-templates are different. According to the User Guide section on test-templates, a test-template body consists of data rows, not "steps", so the
TooManyTestSteps
rule technically doesn't apply to a templated test case. A separateTooManyTemplateDataRows
rule for templated test cases would be more consistent with existing RobotFramework documentation.Additionally, it may be desirable to restrict templated test cases to a different length than regular test cases. When regular test cases have too many steps, they're dense and unreadable. But the bare, tabular format of the test-template syntax can contain many more data rows and still look clean. A separate rule would give developers the option to keep Test Cases short and sweet while allowing templates to breathe a little bit.
Defaults
Since
TooManyTestSteps
defaults to10
, aTooManyTemplateDataRows
rule could sensibly default to15
.The text was updated successfully, but these errors were encountered: