[Qgis-developer] How to debug and unit test Python plugins outside QGIS (e.g. in Ecplise IDE + PyDev)

Tim Sutton lists at linfiniti.com
Tue Jan 10 04:19:58 EST 2012


Hi

On Thu, Mar 3, 2011 at 10:40 AM, Martin Dobias <wonder.sk at gmail.com> wrote:

> The only difference when running unit-tests (i.e. standalone apps) is
> that you cannot access QGIS interface (qgis.utils.iface) since there
> is no QGIS running. But that should not pose a big problem. In case
> you really need access to that interface you can create your own
> implementation of QgisInterface class and assign it to
> qgis.utils.iface.
>
> Regards
> Martin

Martin do you (or anyone else) have example code for creating an iface
instance from a standalone python / QGIS app?

Thanks

Tim

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