-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Possibility to give a custom name to a suite using Name
setting
#4583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
change suite names relative to atest root folder
There's PR #4661 implementing this functionality. |
One problem with making it possible to customize the suite name like this is that it doesn't work properly with the The performance optimization with
This issue obviously covers point 1 above. I'll submit separate issues for points 2 and 3. |
change suite names relative to atest root folder
Makes it possible to specify a custom name for suites. Implements #4583, but documentation is still missing and some tests for invalid `Name` usage should also be added. Co-authored-by: tom bsc <[email protected]> Co-authored-by: Pekka Klärck <[email protected]>
Suite names are got from file or directory names by default so that, for example,
example_suite.robot
creates a suiteExample Suite
. This works fine in general, but makes it inconvenient or even impossible to use special characters like!
or_
. Longer suite names can also be inconvenient as file/directory names. An easy solution to allow using whatever names is adding a newName
. The name would still be set based on the file/directory name by default, but this new setting would allow overriding it.In practice the new setting will look like this:
Being able to set a custom name for suites like this would make issue #4015 more powerful. Without this you needed to use the
--name
option in addition to__init__.robot
files to be able to fully configure the virtual top level suite created when executing multiple files/directories.This change only affects parsing and is fairly straightforward. This is a good issue for anyone interested to get more familiar with Robot's parser!
The text was updated successfully, but these errors were encountered: