Result: introduce plugin interface and corresponding dispatcher
It's a known fact that the concept of results (as in job results) has
been abused. Runners implemented as results prove that. This minimal
interface is intended for Result implementations that render the
complete result at once. This is the case for most *real* result
writer needs, such as XUnit, JSON (ported on the upcoming commits) and
even the HTML report writer (port coming soon)
Once all results are ported, the ResultProxy, our more custom and old
fashioned form of a dispatcher, can be removed. Then, the job
attribute `result`, which is currently a ResultProxy instance with
multiple Result* classes holding a lot of duplicate information, will
be turned into a single instance.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
Showing
想要评论请 注册 或 登录