Change behavior of --test
and --include
so that they are cumulative
#4721
Milestone
--test
and --include
so that they are cumulative
#4721
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).The text was updated successfully, but these errors were encountered: