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
{{ message }}
Repository navigation
Possibility to limit parsing of test case file to certain file type like --extension robot #2365
Html parsing is one of the most time consuming things in RF. Would be beneficial to have a way to totally ignore html files as RF has more preferable input types (such as *.robot)
What would be a good name for a command line option to select tests?
Should it select files that are parsed or files that are ignored? Or do we need support for both?
Should files be selected solely based on the extension or should we support patterns like *.robot?
My thinking about 2. is that having just an option to select files ought to be enough. And with 3. I'd prefer just specifying extensions. Not that much benefits from patterns and something like *.robot needed to be escaped on the cli making it harder to use.
I don't have any really good name ideas in mind, but perhaps --extension robot or --files robot would be fine. Both of these would tell Robot to only parse files with these extensions when scanning for tests.
You could start with something odd and big --strict-robot-format-only and make a shorter option later? This way deprecation or changes would not really spoil the namespace of possible command line options.
I would prefer parsed. Whitelisting and not blacklisting.
I would prefer also just extensions. Downside is that you might have to implement the pattern later and possibly deprecate this option but I think it would be a bigger problem to make a more complex to use pattern paced solution now assuming we have correctly identified the valuable parsing problem here.
--strict-robot-format-only could only be used to parse only robot files. Something like --extension robot would allow using also --extension txt. Been thinking we could soonish start parsing only robot files by default, and this option could then be used to specify an alternative extension if needed.
I got a prototype of this functionality already implemented. Still not sure should the option be --extension, --dataextension, --data, --dataformat, --format or something else.
changed the title [-]Performance: ability to ignore html parsing[/-][+]Possibility to limit parsing of test case file to certain type[/+]on Dec 30, 2016
changed the title [-]Possibility to limit parsing of test case file to certain type[/-][+]Possibility to limit parsing of test case file to certain file type (e.g. `--format robot`)[/+]on Dec 31, 2016
And now this is done. Code review and especially testing would be appreciated. Should be pretty quick because I try to get RF 3.0.1 out still this year (Finnish time) and this was the last feature. Gotta run some acceptance tests and get some sleep first, though.
--format I used is a bit ambiguous. Need to think would --extension or --filetype be better. Also, there's probably only going to be RF 3.0.1 release candidate this year. No need to rush with the final release and better get some feedback from users before too.
changed the title [-]Possibility to limit parsing of test case file to certain file type (e.g. `--format robot`)[/-][+]Possibility to limit parsing of test case file to certain file type like `--extension robot`[/+]on Dec 31, 2016
Renamed --format to --extension. No other good short option was available so decided to keep using -F. I've been thinking we could deprecate --escape and that would free -E in the future.
Activity
pekkaklarck commentedon Dec 29, 2016
Some design decisions to be made:
*.robot?My thinking about 2. is that having just an option to select files ought to be enough. And with 3. I'd prefer just specifying extensions. Not that much benefits from patterns and something like
*.robotneeded to be escaped on the cli making it harder to use.I don't have any really good name ideas in mind, but perhaps
--extension robotor--files robotwould be fine. Both of these would tell Robot to only parse files with these extensions when scanning for tests.mkorpela commentedon Dec 30, 2016
--strict-robot-format-onlyand make a shorter option later? This way deprecation or changes would not really spoil the namespace of possible command line options.pekkaklarck commentedon Dec 30, 2016
--strict-robot-format-onlycould only be used to parse onlyrobotfiles. Something like--extension robotwould allow using also--extension txt. Been thinking we could soonish start parsing onlyrobotfiles by default, and this option could then be used to specify an alternative extension if needed.I got a prototype of this functionality already implemented. Still not sure should the option be
--extension,--dataextension,--data,--dataformat,--formator something else.[-]Performance: ability to ignore html parsing[/-][+]Possibility to limit parsing of test case file to certain type[/+]pekkaklarck commentedon Dec 30, 2016
My current plan is to use
--format.[-]Possibility to limit parsing of test case file to certain type[/-][+]Possibility to limit parsing of test case file to certain file type (e.g. `--format robot`)[/+]pekkaklarck commentedon Dec 31, 2016
And now this is done. Code review and especially testing would be appreciated. Should be pretty quick because I try to get RF 3.0.1 out still this year (Finnish time) and this was the last feature. Gotta run some acceptance tests and get some sleep first, though.
pekkaklarck commentedon Dec 31, 2016
--formatI used is a bit ambiguous. Need to think would--extensionor--filetypebe better. Also, there's probably only going to be RF 3.0.1 release candidate this year. No need to rush with the final release and better get some feedback from users before too.Rename --format to --extension. #2365
[-]Possibility to limit parsing of test case file to certain file type (e.g. `--format robot`)[/-][+]Possibility to limit parsing of test case file to certain file type like `--extension robot`[/+]pekkaklarck commentedon Dec 31, 2016
Renamed
--formatto--extension. No other good short option was available so decided to keep using-F. I've been thinking we could deprecate--escapeand that would free-Ein the future.