You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for the beautiful framework and cookiecutter project!
I'm setting up a project using this cookiecutter and I haven't managed to run the tests without the use of the script that generates the tests docker container. Is there a way to quickly run the tests without recreating a docker container?
I plan to use TDD in my development and if I have to wait a long time for the tests to run it will discourage me from following that practice...
I tried running the tests by executing docker-compose exec backend bash and then running the tests running bash tests-start.sh and also by simply running pytest, but for the former the tests don't manage to authenticate and for the latte I get a pytest not found error.
Any hints would be very welcome!
The text was updated successfully, but these errors were encountered:
Hi @ebreton
Thanks for your reply! I also got an answer from @tiangolo on gitter for this. The tests (of the cookiecutter project) still take about 6-8 seconds to run, which is not negligible, but seems much better than what I thought at first (which was that you should use the script that creates the docker images from scratch). I also managed to install pytest-watch inside the container and use ptw to continuously run the tests whenever the code changes :)
btw, I really like your suggestion for the CrudBase in the (still open) PR.
Hi, thanks for the beautiful framework and cookiecutter project!
I'm setting up a project using this cookiecutter and I haven't managed to run the tests without the use of the script that generates the tests docker container. Is there a way to quickly run the tests without recreating a docker container?
I plan to use TDD in my development and if I have to wait a long time for the tests to run it will discourage me from following that practice...
I tried running the tests by executing
docker-compose exec backend bash
and then running the tests runningbash tests-start.sh
and also by simply runningpytest
, but for the former the tests don't manage to authenticate and for the latte I get apytest
not found error.Any hints would be very welcome!
The text was updated successfully, but these errors were encountered: