[Qgis-developer] Tests for sextante & qgis providers.

Etienne Tourigny etourigny.dev at gmail.com
Thu Jul 19 12:16:36 PDT 2012


Hi all,

it might be a good idea to implement a first test for as basic pyqgis
application as well as one of the core python plugins (e.g. gdaltools,
ftols).

This could serve as a basis for other plugin tests and reside in the
source (tests/src/python).

Etienne

On Thu, Jul 19, 2012 at 4:38 AM, Tim Sutton <lists at linfiniti.com> wrote:
> Hi
>
> On Thu, Jul 19, 2012 at 9:36 AM, Tim Sutton <lists at linfiniti.com> wrote:
>> Hi
>>
>> On Wed, Jul 18, 2012 at 12:58 AM, Camilo Polymeris <cpolymeris at gmail.com> wrote:
>>> Hello all,
>>> I have had some difficulty with implementing the tests for Sextante,
>>> in particular, using QgsProviderRegistry.
>>>
>>> cf: http://code.google.com/p/sextante/source/browse/trunk/soft/bindings/qgis-plugin/src/sextante/tests/qgis_interface.py
>>>
>>> The providers seem not to load. Note that the qgis interface stub is
>>> initialized after a call to QgsApplication.initQgis().
>>> If you have any pointers on what I could be doing wrong, it would be
>>> very much appreciated.
>>>
>>
>> I didnt have time to look through your code right now (maybe this
>> evening I will have a chance), but try looking at this project where I
>> have implemented a working test suite for a QGIS python plugin.
>>
>> https://github.com/AIFDR/inasafe/tree/master/gui
>>
>> The tests are run automatically whenever a git push happens so you can
>> see what is produced here:
>>
>> http://jenkins.linfiniti.com/job/InaSAFE/
>>
>
> In particular also look at this
> https://github.com/AIFDR/inasafe/blob/master/gui/utilities_test.py#L58
> which uses an env var 'QGISPATH' to set up the search path for
> providers etc.
>
> Regards
>
> Tim
>
>> Regards
>>
>> Tim
>>
>>
>>> Thank you & regards,
>>> Camilo
>>
>>
>>
>> --
>> Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
>> ==============================================
>> Please do not email me off-list with technical
>> support questions. Using the lists will gain
>> more exposure for your issues and the knowledge
>> surrounding your issue will be shared with all.
>>
>> Visit http://linfiniti.com to find out about:
>>  * QGIS programming and support services
>>  * Mapserver and PostGIS based hosting plans
>>  * FOSS Consulting Services
>> Skype: timlinux
>> Irc: timlinux on #qgis at freenode.net
>> ==============================================
>
>
>
> --
> Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
> ==============================================
> Please do not email me off-list with technical
> support questions. Using the lists will gain
> more exposure for your issues and the knowledge
> surrounding your issue will be shared with all.
>
> Visit http://linfiniti.com to find out about:
>  * QGIS programming and support services
>  * Mapserver and PostGIS based hosting plans
>  * FOSS Consulting Services
> Skype: timlinux
> Irc: timlinux on #qgis at freenode.net
> ==============================================
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list