Transifex

  • Documentation
  • Django SDK
  • Tests on Django SDK

Tests on Django SDK

Outdated article

All developer documentation has moved to Transifex Developer Hub. Read this article here.

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 localtestswill 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.