Update the Running the tests part.

This commit is contained in:
Emil Stenström 2021-04-18 23:32:34 +02:00
parent abbd6094f3
commit 302991469a

View file

@ -293,18 +293,34 @@ COMPONENTS = {
} }
``` ```
# Running the tests # Install locally and run the tests
To quickly run the tests install the local dependencies by running Start by forking the project by clicking the **Fork button** up in the right corner in the GitHub . This makes a copy of the repository in your own name. Now you can clone this repository locally and start adding features:
```sh
git clone https://github.com/<your GitHub username>/django-components.git
```
To quickly run the tests install the local dependencies by running:
```sh ```sh
pip install -r requirements-dev.txt pip install -r requirements-dev.txt
./pytest ```
Now you can run the tests to make sure everything works as expected:
```sh
pytest
``` ```
The library is also tested across many versions of Python and Django. To run tests that way: The library is also tested across many versions of Python and Django. To run tests that way:
```sh ```sh
pip install -r requirements-dev.txt pyenv install 3.6.9
tox pyenv install 3.7.9
pyenv install 3.8.9
pyenv install 3.9.4
pyenv local 3.6.9 3.7.9 3.8.9 3.9.4
tox -p
``` ```