Skip to content

1.6.0

Choose a tag to compare

@bhirsz bhirsz released this 01 Oct 07:30
· 305 commits to main since this release
b0ea7f6

This release brings a lot of new transformers & changes! New long awaited AlignTestCases transformer (which for now is non default and for templated test only). There are also two new transformers contributed by @adrszad - OrderTags and NormalizeTags.
We also introduced new method of running non default parameter. By configuring enabled parameter you can run all default transformers with addition of selected non default ones:

robotidy --configure RenameTestCases:enabled=True <src>

See below changelog to read about other new transformers, features and fixes. You can also use our discussion page for any questions regarding this release or robotidy in general.

Transformers

  • New non default transformer RenameTestCases. It capitalizes first letter of the test case name, removes trailing dot and can replace provided regex pattern with substitute string (#183)

  • New non default transformer RenameKeywords. It applies Title Case to keyword name and replace underscores by spaces and can replace provided regex pattern with substitute string (#183)

  • Added AlignTestCases transformer for aligning templated test cases in column. Because it's in experimental mode it will be non default for now (see docs for information how to run it) (#185)

  • Missing ENDs in for loop and if statements will be added by new AddMissingEnd transformer (#91)

  • NormalizeAssignments now recognizes assignments from *** Variables *** section separately. It allows you to configure different assignment sign type for keyword calls and for variables section (#159)

    With this change following command will change all assignments signs to = for keyword calls and remove them in *** Variables *** sections.

    robotidy -c NormalizeAssignments:equal_sign_type=equal_sign -c NormalizeAssignments:equal_sign_type_variables=remove <src>
    
  • New OrderTags (non default) transformer. It orders tags in lexicographic order (#205)

  • New NormalizeTags (non default) transformer. It normalizes tag name case and removes duplicates (#212)

Features

  • It is now possible to provide source paths in configuration file (#154)
  • Non default transformers can be enabled using enabled=True parameter (#182)
  • Semicolon in parameter value can now be escaped with \: (#190)
  • Default separator can be changed from space to tabular with new --separator option (#184)

Fixes

  • Robotidy will not print "Loaded configuration from ... " if the configuration is empty (#193)
  • no source path provided error now exits with code 1 instead of 0 (#208)

Other

  • ReplaceRunKeywordIf now removes ELSE branch if it is unnecessary (#192)

Acknowledgements

Thanks @DetachHead for reporting issues regarding aligning test cases nad reporing & fixing #208, @liambeguin for PR with --separator option that allows to use tab as separator, @adrszad for all issues and adding two new transformers (OrderTags and NormalizeTags)