Open petrisorciprian-vitals opened 3 months ago
Thanks for the PR @petrisorciprian-vitals
So if I understand this option correctly, there are 3 ways to use these options?
--xml
: Stores the report by default at report.xml
--xml=path
: The path where you want to store te report.Would it make sense to find a way to support all 3 options in here as well, that can be used in a Backwards Compatible way from a grumphp configuration point of view?
I'm thinking:
Keep bool|string as supported types, where:
false
would result in no argument (no report)true
would result in --xml
--xml=path
WDYT?
Converts the existing 'xml' and 'html' options for Codeception from booleans to strings. Codeception supports specifying paths for these options. If a plain option is passed (without the value, i.e. '--xml' or '--html'), Codeception uses defaults of 'report.xml' and 'report.html'.
If a valued option is passed (i.e. '--xml=my-custom-path/report.xml' or '--html=my-custom-path/report.html'), then this is used instead.
This MR just brings this possibility into GrumPHP