blob: e5990d23de65ccbc535b8842a21c07f6550d52cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Inkscape Extension Tests
This folder contains tests for the Inkscape extensions and libraries in this
repo.
Pytest and Pytest-Coverage are required to run tests. Usually the best way to install it is:
More info here: https://docs.pytest.org/en/latest/getting-started.html
```shell
$ # Python 2
$ pip install pytest pytest-cov
$ # Python 3
$ pip3 install pytest pytest-cov
```
To run all tests:
```shell
# In the top-level directory of the extensions repo:
$ python2 -m pytest
$ python3 -m pytest
```
To run the tests in a specific file (in this case,
`tests/test_color_blackandwhite.py`):
```shell
# In the top-level directory of the extensions repo:
$ python2 -m pytest tests/test_color_blackandwhite.py
$ python3 -m pytest tests/test_color_blackandwhite.py
```
|