Skip to content

Commit

Permalink
Add hint about running specific test methods in python unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
strk committed Oct 13, 2016
1 parent 35f1749 commit d30a8c1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Individual tests can be run using `ctest`.

For example if the output of `make check` ends like this:


```
The following tests FAILED:
77 - PyQgsLocalServer (Failed)
Expand All @@ -31,6 +30,17 @@ You could re-run the failing test with:
The parameter `-V` enables verbose mode and `-R` takes a regular expression as
parameter and will only run matching tests.


For python tests, you can run a specific test inside a unit file
with something like this:

```
QGIS_PREFIX_PATH=output PYTHONPATH=output/python:$PYTHONPATH \
python ${srcdir}/tests/src/python/test_qgsvectorfilewriter.py
TestQgsVectorLayer.testOverwriteLayer
```


Advanced configuration
----------------------

Expand Down

0 comments on commit d30a8c1

Please sign in to comment.