Skip to content

document how to run tests locally without coverage and CI tools #385

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

Closed
den-run-ai opened this issue Feb 16, 2017 · 5 comments
Closed

document how to run tests locally without coverage and CI tools #385

den-run-ai opened this issue Feb 16, 2017 · 5 comments

Comments

@den-run-ai
Copy link
Contributor

C:\Python\pythonnet>python src\tests\runtests.py
Traceback (most recent call last):
  File "src\tests\runtests.py", line 11, in <module>
    from ._compat import input
SystemError: Parent module '' not loaded, cannot perform relative import

This used to work before.

@den-run-ai den-run-ai changed the title document how to run tests locally with coverage and CI tools document how to run tests locally without coverage and CI tools Feb 16, 2017
@vmuriart
Copy link
Contributor

run pytest

@vmuriart
Copy link
Contributor

or python -m pytest

@den-run-ai
Copy link
Contributor Author

nice format from pytest:

image

@den-run-ai
Copy link
Contributor Author

@vmuriart
Copy link
Contributor

Strange that run_tests didn't work though. I thought I had updated it to run pytest as well. Though from the looks of the error its a PY2/PY3 compatibility issue wrt relative/absolute imports.

If you remove the import and the call to input it should work.

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