New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Listener: add text to error text? #2258
Comments
Listeners are for listening. They should not modify anything. |
Then how can I add a link to the screenshot in the error text? |
I do not know anything about |
This is a more general question about how to add information to tests results. |
A listener is a listener. It must only listen. If it does something more then that is wrong. It is a mistake in the implementation of PHPUnit that listeners can manipulate |
You already said this, my question is what can I do to alter the test result text. I won’t use a Listener if it can’t do it, is there an other way mechanism capable of altering the text output? |
Hello,
I wanted to create a modified version of PHPUnit_Extensions_Selenium2TestCase_ScreenshotListener to add a link to the screenshot in the error text.
But I can’t find any way to alter output using a Listener, it seems printf just outputs to the terminal, and I’m not sure if a listeners methods can return something and how it should be formatted?
How can a Listener add some text to the test result?
The text was updated successfully, but these errors were encountered: