[Qgis-developer] QgsProject properties problems

Steven Bell botsnlinux at gmail.com
Fri May 16 15:39:30 EDT 2008


The test I found for QgsProject is here:
http://trac.osgeo.org/qgis/browser/trunk/qgis/tests/algorithms/qgsproject
I guess it's pretty old, and not integrated into the new system.

As another sidenote, running "make test" fails 5 of the 8 tests.
Steven

On Fri, May 16, 2008 at 3:28 PM, Tim Sutton <tim at linfiniti.com> wrote:

> Hi Steven
>
> No need to use qmake for the unit tests (where did you see that
> documented so I can update that?). To build tests do:
>
> ccmake ..
> ENABLE_TESTS on
>
> (save out of ccmake)
>
> make install
> make test
>
> You can find the tutorial I wrote on writing unit tests for qgis
> (which includes additional info on running the tests too) here:
>
> http://wiki.qgis.org/qgiswiki/DevelopersManual
>
> Note that any new features going into core are supposed to be
> accompanied by tests too.
>
> Regards
>
> Tim
>
> 2008/5/15 Steven Bell <botsnlinux at gmail.com>:
> >
> > I am attempting to fix bug #924.  From what I understand, it appears
> > QgsProject::removeEntry is not working correctly.  The debugging
> statement
> > in the code below prints out a non-null address.
> >
> > bool QgsProject::removeEntry(QString const &scope, const QString & key)
> > {
> >     removeKey_( scope, key, imp_->properties_ );
> >     dirty(true);
> >
> > std::cout << "removed entry... find key: " << findKey_(scope, key,
> > imp_->properties_ ) << std::endl;
> >
> >     return ! findKey_(scope, key, imp_->properties_ );
> > } // QgsProject::removeEntry
> >
> > I attempted to compile the unit test, but didn't find any instructions
> other
> > than "run qmake, run make".  I got a zillion errors about not finding
> header
> > files.
> >
> > What do I need to do to properly compile the unit test?
> > Thanks!
> > Steven
> >
> >
> > _______________________________________________
> > Qgis-developer mailing list
> > Qgis-developer at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-developer
> >
> >
>
>
>
> --
> Tim Sutton
> QGIS Project Steering Committee Member - Release Manager
> Visit http://qgis.org for a great open source GIS
> openModeller Desktop Developer
> Visit http://openModeller.sf.net for a great open source ecological
> niche modelling tool
> Home Page: http://tim.linfiniti.com
> Skype: timlinux
> Irc: timlinux on #qgis at freenode.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20080516/20fdcc63/attachment.html


More information about the Qgis-developer mailing list