mirror of
https://github.com/django-components/django-components.git
synced 2025-11-26 00:41:54 +00:00
Simplify instructions on how to run tests locally.
This commit is contained in:
parent
ebb180c540
commit
99d761b340
1 changed files with 5 additions and 15 deletions
20
README.md
20
README.md
|
|
@ -136,26 +136,16 @@ This makes it possible to organize your front-end around reusable components. In
|
||||||
|
|
||||||
# Running the tests
|
# Running the tests
|
||||||
|
|
||||||
Install `tox`:
|
To quickly run the tests install the local dependencies by running
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
pip install tox
|
pip install -r requirements-dev.txt
|
||||||
|
./pytest
|
||||||
```
|
```
|
||||||
|
|
||||||
Then run all the tests over all Python versions:
|
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
|
||||||
tox
|
tox
|
||||||
```
|
```
|
||||||
|
|
||||||
Or just the particular version you wish to test:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
tox -e py34
|
|
||||||
```
|
|
||||||
|
|
||||||
You can also have it watch the directory for changes and re-run the tests:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
tox -e py34 -- -f
|
|
||||||
```
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue