Skip to content

Commit

Permalink
add some notes in processing test readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Nov 30, 2017
1 parent 1b8faa2 commit 7303297
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion python/plugins/processing/tests/README.md
Expand Up @@ -25,7 +25,7 @@ How To
To add a new test please follow these steps:

1. **Run the algorithm** you want to test in QGIS from the processing toolbox. If the
result is a vector layer prefer GML as output for its support of mixed
result is a vector layer prefer GML, with its XSD, as output for its support of mixed
geometry types and good readability. Redirect output to
`python/plugins/processing/tests/testdata/expected`. For input layers prefer to use what's already there in the folder `testdata`. If you need extra data, put it into `testdata/custom`.

Expand Down Expand Up @@ -131,6 +131,8 @@ It couldn't be more trivial
type: vector
```

Add the expected GML and XSD in the folder.

#### Vector with tolerance

Sometimes different platforms create slightly different results which are
Expand Down Expand Up @@ -191,3 +193,10 @@ OUTPUT:
- 'Geometry: Line String'
- 'Feature Count: 6'
```

Running tests locally
------------------
```bash
ctest -V -R ProcessingQgisAlgorithmsTest
```
or one of the following value listed in the [CMakelists.txt](https://github.com/qgis/QGIS/blob/master/python/plugins/processing/tests/CMakeLists.txt)

0 comments on commit 7303297

Please sign in to comment.