[Qgis-developer] run only one unit test?

Raymond Nijssen r.nijssen at terglobo.nl
Fri Oct 14 01:58:12 PDT 2016


Thank you Sandro!

I was looking for it over here but could not find it:

https://www.qgis.org/en/site/getinvolved/development/qgisdevelopersguide/unittesting.html

Tnx,
Raymond




On 10/13/2016 08:33 PM, Sandro Santilli wrote:
> 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