Skip to content
Permalink
Browse files

Add hint about running specific test methods in python unit tests

  • Loading branch information
strk committed Oct 13, 2016
1 parent 35f1749 commit d30a8c1fc2229477cbe4772dad822c8a94991721
Showing with 11 additions and 1 deletion.
  1. +11 −1 tests/README.md
@@ -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)
@@ -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
----------------------

0 comments on commit d30a8c1

Please sign in to comment.
You can’t perform that action at this time.