Skip to content

Commit

Permalink
Mention xvfb-run in tests/README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Éric Lemoine committed May 20, 2019
1 parent 7a6c17a commit eb2f3b3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/README.md
Expand Up @@ -29,7 +29,6 @@ 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:

Expand All @@ -39,6 +38,13 @@ with something like this:
TestQgsVectorLayer.testOverwriteLayer
```

If you get `Could not connect to any X display` errors it means that your build
machine does not have an X server. In that case you need to run the test under
`xvfb-run`. For example:

```
xvfb-run --server-args=-screen\ 10\ 1024x768x24 ctest -V -R PyQgsServerWMSGetMap
```

# Advanced configuration

Expand Down

0 comments on commit eb2f3b3

Please sign in to comment.