[Qgis-developer] run only one unit test?
Sandro Santilli
strk at kbt.io
Thu Oct 13 11:33:45 PDT 2016
On Thu, Oct 13, 2016 at 07:52:50PM +0200, Even Rouault wrote:
> 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
Thanks, I've added it to the README file
--strk;
More information about the Qgis-developer
mailing list