[Qgis-developer] run only one unit test?

Even Rouault even.rouault at spatialys.com
Thu Oct 13 10:52:50 PDT 2016


Le jeudi 13 octobre 2016 19:31:08, Sandro Santilli a écrit :
> On Thu, Oct 13, 2016 at 07:07:01PM +0200, Raymond Nijssen wrote:
> > Can I run only one unit test, instead of all 244?
> > 
> > Something like:
> > 
> > make test QgsSymbolLayerCreateSld
> 
> Something like this should work:
> 
>   ctest -R QgsSymbolLayerCreateSld
> 
> See tests/README.md, and please help improving it
> (for example: can I run just a *single* test inside a test unit?)

I usually do something like this shortcircuiting ctest:

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


> 
> --strk;
> _______________________________________________
> 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

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the Qgis-developer mailing list