These are chat archives for Behat/Behat

1st
Sep 2014
Behat\Testwork\Output\Printer\ConsoleOutputPrinter is one of the only classes that isn't final so you can extend it
@docteurklein hope it helps
Florian Klein
@docteurklein
Sep 01 2014 10:48
I see thanks. But you still have to manually inject this exact printer into your presenters
what if the presenter you use is not aware there is a printer able to print correctly some output
example with phpspec exception stringer
any presenter would like to benefit from its ability to present stack straces in color
I'm not sure, but do you see what I mean ?
Florian Klein
@docteurklein
Sep 01 2014 10:53
(well, not all presenters: maybe progress or dots wouldn't, or maybe it would if --verbose)
Konstantin Kudryashov
@everzet
Sep 01 2014 11:06
I don't have universal solution :)
Just the one I used in Behat. I'm not 100% happy with it, but it does work for Behat
Florian Klein
@docteurklein
Sep 01 2014 11:27
sure :) it's already very awesome BTW.
I guess it could be possible if we provided an official way to access output printer definitions (via a DIC tag for example). What do you think ?
If you agree with this, I can try to propose a PR
Konstantin Kudryashov
@everzet
Sep 01 2014 12:20
@docteurklein if you're willing to try make a clear extension point - I'd say go ahead. We can continue discussion in PR :)
Florian Klein
@docteurklein
Sep 01 2014 14:01
good idea. i'll try it and PR
thanks for your time! hope laracon was/is good :)
Konstantin Kudryashov
@everzet
Sep 01 2014 16:38
@docteurklein pleasure, matie. Too sad that you're not coming to London with Pierre and Gildas :(