Tests on Django SDK
In order to run tests on your Transifex Native installation over Django, use make localtests
.
If this is the first time you are doing it, you will also have to run make build
too.
Running 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
Use pytest -s
to enable interactive debugging.
Updated almost 3 years ago