[QGIS-Developer] How to test a processing plugin ?

Jean-Charles Quillet jeancharles.quillet at gmail.com
Thu Feb 20 05:09:36 PST 2020


Hi Etienne,

Thank you for pointing this. I'll check it out.

I want to write unit tests for my processing algorithm. I'll off course
test the functions of the algorithm itself but that is the easy part.

I was wondering if it was possible to test the integration with QGis itself
and how.

Jean-Charles

Le jeu. 20 févr. 2020 à 10:57, Etienne Trimaille <
etienne.trimaille at gmail.com> a écrit :

> We are writing unit test for our processing algorithms.
>
> Jean-Charles, can you explain your questions? Is-it about how to
> initialize the Processing provider ? on travis, in unittest?
>
> I started a simple one last week on this plugin :
> https://github.com/3liz/qgis-raepa-plugin/blob/master/test/test_processing.py
>
> Le jeu. 20 févr. 2020 à 09:41, Alessandro Pasotti <apasotti at gmail.com> a
> écrit :
>
>> Hi,
>>
>> see:
>> https://github.com/qgis/QGIS/tree/master/python/plugins/processing/tests
>>
>> On Thu, Feb 20, 2020 at 9:30 AM Jean-Charles Quillet <
>> jeancharles.quillet at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I'm currently writing a processing plugin and I was wondering how to
>>> unit test it.
>>>
>>> Is there a well established way of testing plugins ? Is there a template
>>> somewhere I can use to base my tests on ?
>>>
>>> Thanks for your help,
>>>
>>> Jean-Charles
>>>
>>> _______________________________________________
>>> QGIS-Developer mailing list
>>> QGIS-Developer at lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>>
>>
>> --
>> Alessandro Pasotti
>> w3:   www.itopen.it
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200220/a963cd57/attachment.html>


More information about the QGIS-Developer mailing list