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

Docs for running tests need updated path for manage.py #93

Closed
pydolan opened this issue Apr 4, 2019 · 2 comments
Closed

Docs for running tests need updated path for manage.py #93

pydolan opened this issue Apr 4, 2019 · 2 comments
Labels

Comments

@pydolan
Copy link
Contributor

pydolan commented Apr 4, 2019

On https://behave-django.readthedocs.io/en/latest/contribute.html, all commands using manage.py should be updated to tests/manage.py since it is implied that the tests be run from the root of the project.

Note: If one tries to run the tests from within the tests directory, the py.test tests fail and Behave cannot find the steps directory since the Behave config is not defined (since tox.ini is in the parent directory).

@bittner
Copy link
Member

bittner commented Apr 4, 2019

Thanks for pointing this out!

  • This should be updated to tox -l and tox -e py37-django21 (example). The testing docs are from the early days when we had no Tox in the project yet.
  • Installing the dev requirements should be mentioned to be optional. (There's really just tox, everything else is installed automatically during the test runs.)

In short, all references suggesting manual setup of a development environment should be removed or marked optional. All references suggesting to run something other than tox likewise.

@bittner
Copy link
Member

bittner commented Apr 4, 2019

That should be clearer now.

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

No branches or pull requests

2 participants