robotframework/mabot

Remove tags when test is modified

Closed this issue · 3 comments

When user modifies test, it is possible to add automatically some tags like
executed-by-bond, build-x and so on. 

It would be good also remove some old similar tags using option remove tags
when test case is modified. Those could be given like executed-by*

Actually this could be done also automatically based on the additionally
added tags by finding the prefix using last '-' sign in the added tags. In
case you would have additinal tags: executed-by-bond, build-x, before
adding tags matching executed-by-* and build-* could be removed. This would
be better as when the user changes the tags that additionally are added,
also tags that are removed follow the change. This could be at least the
first implementation.

Original issue reported on code.google.com by jpran...@gmail.com on 26 May 2009 at 9:01

This issue tracker can be configured to allow only one label of each type, e.g. 
only
one 'Type-' label. Perhaps that's how it should be implemented also for Mabot?

Original comment by pekka.klarck on 26 May 2009 at 5:01

[deleted comment]
There is now setting "Tags Allowed Only Once" which can be used to define the
prefixes that should not be in tags more than once. You could for example add 
there
'build-' and 'executed-by-' and when ever you add any tags to the test (Add 
Tags or
automatically tags specified with Add Tags to Modified Tests setting), tags are
checked and old tags are removed to prevent duplicates in tags containing 
defined
prefixes.

Original comment by jpran...@gmail.com on 3 Jun 2009 at 1:25