[Qgis-developer] QgsProject properties problems
Tim Sutton
tim at linfiniti.com
Fri May 16 15:28:45 EDT 2008
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
More information about the Qgis-developer
mailing list