In order to run tests on your Transifex Native installation over Django, use
If this is the first time you are doing it, you will also have to run
make build too.
make localtests will spawn a docker container and run all the builds that run on the Travis CI platform. In the end, it will produce a coverage report as well.
During development, in case you want to run tests with a debugger (interactive debugging), you can use
pytest -s. However, since tests will also test the Django integration, you will need to install
pytest-django and a supported Django version (currently 1.11). Then, run
pytest as follows:
PYTHONPATH=$PYTHONPATH:$(pwd) DJANGO_SETTINGS_MODULE=tests.native.django.settings pytest
pytest -s to enable interactive debugging.
Updated about 1 year ago