-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Change behavior of --test
and --include
so that they are cumulative
#4721
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
--suite
, --test
and --include
together so that they are cumulative--test
and --include
so that they are cumulative
After discussion on Slack, we decided to keep the old We will change Earlier |
This change caused annoying problems with Pabot and with |
The aforementioned change will happen already in RF 7.0.1. See #5023 for more information. |
Currently when you use
--suite x --test y --include z
, a test is selected only if it is in suitex
, has namey
and contains a tagz
. This is rarely if ever useful. It would typically be enough to just use--test y
to select that test.On the other hand, it would more useful to be able to use
--suite x --test y
so that all tests in suitex
are selected in addition to testy
. Similarly,--include x --test y
should mean selecting all tests containing tagx
in addition to testy
.This change is backwards incompatible, but because the current behavior is pretty strange it's unlikely there are lot of problems. Changing the behavior in Robot Framework 7.0 ought to thus be fine. The plan is to change the behavior with
--suite
also otherwise and making all these changes in the same release would be good.Although these options should have a cumulative effect, we probably should interpret
--exclude
so that tests containing the specified tag aren't selected. That would preserve its behavior when used with other options, most importantly with--include
.UPDATE: We decided to keep the old
--suite
behavior. See the comment below for more details. Notice also that--suite
not affecting which files are parsed was implemented already in RF 6.1 (#4688).UPDATE: This change will be reverted in RF 7.0.1 due to problems it caused with Pabot and
--rerunfailed
. See comments and other notes below for more information.The text was updated successfully, but these errors were encountered: