paraunit icon indicating copy to clipboard operation
paraunit copied to clipboard

--printer flag not respected

Open SteveDesmond-ca opened this issue 4 years ago • 2 comments

Steps to reproduce:

  1. create a custom printer that does something like outputs the test name after each test result (e.g. ./E/F/etc.)
  2. run vendor/bin/phpunit --printer {printer_class_name}
  3. run vendor/bin/paraunit --printer={printer_class_name}

Expected result:

  • both phpunit and paraunit provide similar output

Observed result:

  • paraunit seems to ignore the --printer flag, and displays "default" output

Alternatively, --testdox support would handle my use case

SteveDesmond-ca avatar Mar 13 '20 17:03 SteveDesmond-ca

Usign --printer is not easily doable as of now, I would have to reproduce the whole PHPUnit behavior inside Paraunit; also, that extension point in PHPUnit itself is deprecated and will be removed in PHPUnit 9.

As for testdox, I fear that as of now, Paraunit doesn't collect enough info to print out that format; that would probably require a complete rewrite of the feature on this side too.

Jean85 avatar Mar 16 '20 07:03 Jean85

:+1: Understandable, I think this issue then becomes "remove the --printer flag from the CLI help text so as to not imply that this functionality exists/works.`

SteveDesmond-ca avatar Mar 16 '20 13:03 SteveDesmond-ca

Closing as this is completely solved in 2.0 thanks to the new event system, and the --passthrough option when needed. Won't do anything on 1.x, sorry.

Jean85 avatar May 03 '23 21:05 Jean85