Skip to content
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

OutputHandler v3 #370

Merged
merged 3 commits into from Aug 13, 2017
Merged

OutputHandler v3 #370

merged 3 commits into from Aug 13, 2017

Conversation

milo
Copy link
Member

@milo milo commented Jul 31, 2017

This BC break storm can be split on:

OutputHandler receives whole Test instance
So it can reach all its properties, including stout and stderr.

Added OutputHandler::prepare(Test $test)
So it can perform some prepare actions. AFAIK it is "needed" by @jiripudil for PhpStorm plugin, right?

OutputHandler is an abstract class instead of the interface
OutputHandler is the only one place where someone can hook the Tester. It will help to prevent BC breaks

Dropped runner's getResults() and getJobCount()
With OutputHandler::prepare() is easy to count jobs and results by its own. Runner itself does not need this methods.

@milo milo force-pushed the pull-outputs-v3 branch 3 times, most recently from 538447f to 99d7980 Compare August 3, 2017 19:10
@milo
Copy link
Member Author

milo commented Aug 8, 2017

Updated to keep OutputHandler as an interface.

@milo milo merged commit 99d7980 into nette:master Aug 13, 2017
This was referenced Aug 13, 2017
@milo milo deleted the pull-outputs-v3 branch August 15, 2017 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant