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

Not callable as a module in other programs (eg Coverage.py) #19

Open
ZachArani opened this issue Jul 6, 2018 · 2 comments
Open

Not callable as a module in other programs (eg Coverage.py) #19

ZachArani opened this issue Jul 6, 2018 · 2 comments

Comments

@ZachArani
Copy link

ZachArani commented Jul 6, 2018

There are countless cases where I've needed to call collective.xmltestreport as a module, namely in coverage.py like so:

coverage run -m collective.xmltestreport --test-path=. --auto-color --auto-progress --xml

I can do this with zope.testrunner as-is. If this package is supposed to be identical to zope.testrunner, then I heavily recommend a __main__.py file and __init__.py file get mirrored from zope.testrunner.

@ZachArani
Copy link
Author

Here's my example: #20

@gforcada
Copy link
Member

I was about to report that as well. We should/need to update this package to not be that much tied to zc.buildout, as in Plone at least, we are phasing it out to use either plain python tools or something like mxdev.

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

No branches or pull requests

2 participants