mirror of
https://github.com/django-components/django-components.git
synced 2025-09-27 07:59:08 +00:00
Update the Running the tests part.
This commit is contained in:
parent
abbd6094f3
commit
302991469a
1 changed files with 21 additions and 5 deletions
26
README.md
26
README.md
|
@ -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
|
||||
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:
|
||||
|
||||
```sh
|
||||
pip install -r requirements-dev.txt
|
||||
tox
|
||||
pyenv install 3.6.9
|
||||
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
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue