The test I found for QgsProject is here:<br><a href="http://trac.osgeo.org/qgis/browser/trunk/qgis/tests/algorithms/qgsproject">http://trac.osgeo.org/qgis/browser/trunk/qgis/tests/algorithms/qgsproject</a><br>I guess it's pretty old, and not integrated into the new system.<br>
<br>As another sidenote, running "make test" fails 5 of the 8 tests.<br>Steven<br><br><div class="gmail_quote">On Fri, May 16, 2008 at 3:28 PM, Tim Sutton <<a href="mailto:tim@linfiniti.com">tim@linfiniti.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Steven<br>
<br>
No need to use qmake for the unit tests (where did you see that<br>
documented so I can update that?). To build tests do:<br>
<br>
ccmake ..<br>
ENABLE_TESTS on<br>
<br>
(save out of ccmake)<br>
<br>
make install<br>
make test<br>
<br>
You can find the tutorial I wrote on writing unit tests for qgis<br>
(which includes additional info on running the tests too) here:<br>
<br>
<a href="http://wiki.qgis.org/qgiswiki/DevelopersManual" target="_blank">http://wiki.qgis.org/qgiswiki/DevelopersManual</a><br>
<br>
Note that any new features going into core are supposed to be<br>
accompanied by tests too.<br>
<br>
Regards<br>
<br>
Tim<br>
<br>
2008/5/15 Steven Bell <<a href="mailto:botsnlinux@gmail.com">botsnlinux@gmail.com</a>>:<br>
<div><div></div><div class="Wj3C7c">><br>
> I am attempting to fix bug #924. From what I understand, it appears<br>
> QgsProject::removeEntry is not working correctly. The debugging statement<br>
> in the code below prints out a non-null address.<br>
><br>
> bool QgsProject::removeEntry(QString const &scope, const QString & key)<br>
> {<br>
> removeKey_( scope, key, imp_->properties_ );<br>
> dirty(true);<br>
><br>
> std::cout << "removed entry... find key: " << findKey_(scope, key,<br>
> imp_->properties_ ) << std::endl;<br>
><br>
> return ! findKey_(scope, key, imp_->properties_ );<br>
> } // QgsProject::removeEntry<br>
><br>
> I attempted to compile the unit test, but didn't find any instructions other<br>
> than "run qmake, run make". I got a zillion errors about not finding header<br>
> files.<br>
><br>
> What do I need to do to properly compile the unit test?<br>
> Thanks!<br>
> Steven<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
Tim Sutton<br>
QGIS Project Steering Committee Member - Release Manager<br>
Visit <a href="http://qgis.org" target="_blank">http://qgis.org</a> for a great open source GIS<br>
openModeller Desktop Developer<br>
Visit <a href="http://openModeller.sf.net" target="_blank">http://openModeller.sf.net</a> for a great open source ecological<br>
niche modelling tool<br>
Home Page: <a href="http://tim.linfiniti.com" target="_blank">http://tim.linfiniti.com</a><br>
Skype: timlinux<br>
Irc: timlinux on #qgis at <a href="http://freenode.net" target="_blank">freenode.net</a><br>
</blockquote></div><br>