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

Tim Sutton lists at linfiniti.com
Thu Jul 19 00:38:18 PDT 2012


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
==============================================


More information about the Qgis-developer mailing list