Running the Test Suite¶
To run the django-dynamic-breadcrumbs tests checkout the source code and create a virtualenv where you can install the test dependencies.
Note
The following assumes you have virtualenv and git installed.
Clone the repository¶
Get the source code using the following command:
$ git clone https://github.com/marcanuy/django-dynamic-breadcrumbs.git
Switch to the django-dynamic-breadcrumbs directory:
$ cd django-dynamic-breadcrumbs
Set up the virtualenv¶
Create a new virtualenv to run the test suite in:
$ python3 -m venv ~/.virtualenvs/django-dynamic-breadcrumbs
Then activate the virtualenv and install the test requirements:
$ source ~/.virtualenvs/django-dynamic-breadcrumbs/bin/activate
$ pip install -r requirements/test.txt
Execute the test runner¶
Run the tests with the runner script:
$ make tests-run
Test all supported versions¶
To run the tests against all supported versions of Python and Django use tox, then:
$ tox
Formatting¶
Python code is formatted with black
$ black .