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 you use --test parent_name.test_name, there must be a test named test_name in a suite named parent_name and that suite must also be the root suite. On the other hand, --suite parent_name.suite_name works so that parent_name can also be a child suite. This is pretty inconsistent and needs to be changed.
The reason to requite --test parent_name.test_name to match the full suite name is that it makes it possible to explicitly pinpoint what test to run. If the name could match also partially, it could match also tests it shouldn't. For example Pabot relies on this functionality and it cannot be changed. If a partial match is needed, it's possible to use wildcards like --test *.parent_name.test_name.
I don't remember there being any reason why --suite parent_name.suite_name should also support partial matches. To make --test and --suite behavior consistent, it ought to thus be ok to change how --suite behaves. The change is backwards incompatible but we can do it in Robot Framework 7.0. I doubt this functionality is used so often that it should be deprecated first.
The text was updated successfully, but these errors were encountered:
The exact behavior how --test and --suite isn't currently documented in the User Guide. I noticed that, and discovered this inconsistency, when I was writing about issues with the new Name setting (#4583) with the --suite option. I'll enhance documentation and also mention that the current behavior is subject to change.
The plan is to fix the aforementioned issue with --suite in RF 7.0 (#4688). It's good to make also other backwards incompatible --suite related changes in the same release.
pekkaklarck
changed the title
Requite --suite parent.suite to match the full suita name, starting from root
Requite --suite parent.suite to match the full suite name
Apr 5, 2023
- Explain their usage and how they work together better.
- Explain that new Name is not compatible with --suite (#4583)
- Explain how --suite is going to be changed (incl. fixing of the
above issue) in RF 7.0 (#4720, #4721, #4688)
Snooz82
changed the title
Requite --suite parent.suite to match the full suite name
Require --suite parent.suite to match the full suite name
Nov 9, 2023
When you use
--test parent_name.test_name
, there must be a test namedtest_name
in a suite namedparent_name
and that suite must also be the root suite. On the other hand,--suite parent_name.suite_name
works so thatparent_name
can also be a child suite. This is pretty inconsistent and needs to be changed.The reason to requite
--test parent_name.test_name
to match the full suite name is that it makes it possible to explicitly pinpoint what test to run. If the name could match also partially, it could match also tests it shouldn't. For example Pabot relies on this functionality and it cannot be changed. If a partial match is needed, it's possible to use wildcards like--test *.parent_name.test_name
.I don't remember there being any reason why
--suite parent_name.suite_name
should also support partial matches. To make--test
and--suite
behavior consistent, it ought to thus be ok to change how--suite
behaves. The change is backwards incompatible but we can do it in Robot Framework 7.0. I doubt this functionality is used so often that it should be deprecated first.The text was updated successfully, but these errors were encountered: