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

Ease adding new features aka plug-ins #72

Open
icemac opened this issue Apr 5, 2018 · 3 comments
Open

Ease adding new features aka plug-ins #72

icemac opened this issue Apr 5, 2018 · 3 comments

Comments

@icemac
Copy link
Member

icemac commented Apr 5, 2018

Currently there seems to be no easy way to create additional features for the testrunner in packages outside zope.testrunner. See Shoobx/shoobx.junitxml as an example of such a plug-in. (Its README what is currently needed to integrate it in zope.testrunner. But this is only one half of what has to be done: The code has to be called before executing the configuration phase of zope.testrunner. So having it in a module of the package under test is too late.)

Pytest uses setuptools entry points for the discovery of plug-ins, see https://docs.pytest.org/en/latest/writing_plugins.html#setuptools-entry-points
Maybe this could be an idea here, too.

@mgedmin
Copy link
Member

mgedmin commented Apr 5, 2018

collective.xmltestreport is another one that extends zope.testrunner to add JUnit xml output.

(Digression: zope.testrunner should support that natively.)

The biggest problem, as usual, is lack of volunteers who are willing to contribute features to zope.testrunner and then maintain them.

@icemac
Copy link
Member Author

icemac commented Apr 5, 2018

@strichter Are you interested in such a plug-in system for an easier integration of shoobx.junitxml into zope.testrunner?

@icemac
Copy link
Member Author

icemac commented Apr 5, 2018

@mgedmin wrote:

collective.xmltestreport is another one that extends zope.testrunner to add JUnit xml output.

It currently only supports Python 2 and it replaces zope.testrunner doe to the lack of extensibility

(Digression: zope.testrunner should support that natively.)

I found your issue on Launchpad.net https://bugs.launchpad.net/zope.testrunner/+bug/691365 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants