[Qgis-developer] Processing tests

Tim Sutton tim at kartoza.com
Sun Mar 13 11:32:32 PDT 2016


Hi Anita

> On 13 Mar 2016, at 12:32, Anita Graser <anitagraser at gmx.at> wrote:
> 
> Hi Matthias,
> 
> How can I check whether my test works before I create a PR?

if you have a build environment on your pc you can do something like this from in your build directory:

ctest -R Processing

If you don’t have a build environment you could set up travis to work against your own repo too so that it builds against your master branch before you make a PR.

Regards

Tim

> 
> Thanks and best wishes,
> Anita
> 
> 
> 
> On Tue, Feb 23, 2016 at 12:58 PM, Matthias Kuhn <matthias at opengis.ch <mailto:matthias at opengis.ch>> wrote:
> You have probably noticed that recently some tests for processing have
> been included.
> 
> They run geo-algorithms and check if their result matches with what is
> expected.
> 
> It is very easy to expand this suite. Test definitions are written in
> the form of yaml. Templates for this definitions can be created from the
> processing history. There are some possibilities to fine-tune the
> comparison (e.g. skip fields, allow values to be compared with an
> epsilon, match a result file with a series of regular expressions...)
> which have been added more recently. At the moment it runs tests for
> some qgis algorithms and gdal algorithms.
> 
> If you have 5 minutes to spare today, please help and add a test!
> 
> More information can be found in our blog [1] and the readme [2].
> 
> Thanks a lot,
> Matthias
> 
> https://github.com/qgis/QGIS/blob/master/python/plugins/processing/tests/README.md <https://github.com/qgis/QGIS/blob/master/python/plugins/processing/tests/README.md>
> 
> 
> --
> Matthias Kuhn
> OPENGIS.ch - https://www.opengis.ch <https://www.opengis.ch/>
> Spatial • (Q)GIS • PostGIS • Open Source
> 
> 
> 
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org <mailto:Qgis-developer at lists.osgeo.org>
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer <http://lists.osgeo.org/mailman/listinfo/qgis-developer>
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer <http://lists.osgeo.org/mailman/listinfo/qgis-developer>
> 
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

—





Tim Sutton

Visit http://kartoza.com <http://kartoza.com/> to find out about open source:

* Desktop GIS programming services
* Geospatial web development
* GIS Training
* Consulting Services

Skype: timlinux Irc: timlinux on #qgis at freenode.net
Tim is a member of the QGIS Project Steering Committee

Kartoza is a merger between Linfiniti and Afrispatial

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160313/6282d297/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KartozaLogo160x66.png
Type: image/png
Size: 9324 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160313/6282d297/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160313/6282d297/attachment-0001.sig>


More information about the Qgis-developer mailing list