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&#39;s pretty old, and not integrated into the new system.<br>
<br>As another sidenote, running &quot;make test&quot; 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 &lt;<a href="mailto:tim@linfiniti.com">tim@linfiniti.com</a>&gt; 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 &lt;<a href="mailto:botsnlinux@gmail.com">botsnlinux@gmail.com</a>&gt;:<br>
<div><div></div><div class="Wj3C7c">&gt;<br>
&gt; I am attempting to fix bug #924. &nbsp;From what I understand, it appears<br>
&gt; QgsProject::removeEntry is not working correctly. &nbsp;The debugging statement<br>
&gt; in the code below prints out a non-null address.<br>
&gt;<br>
&gt; bool QgsProject::removeEntry(QString const &amp;scope, const QString &amp; key)<br>
&gt; {<br>
&gt; &nbsp; &nbsp; removeKey_( scope, key, imp_-&gt;properties_ );<br>
&gt; &nbsp; &nbsp; dirty(true);<br>
&gt;<br>
&gt; std::cout &lt;&lt; &quot;removed entry... find key: &quot; &lt;&lt; findKey_(scope, key,<br>
&gt; imp_-&gt;properties_ ) &lt;&lt; std::endl;<br>
&gt;<br>
&gt; &nbsp; &nbsp; return ! findKey_(scope, key, imp_-&gt;properties_ );<br>
&gt; } // QgsProject::removeEntry<br>
&gt;<br>
&gt; I attempted to compile the unit test, but didn&#39;t find any instructions other<br>
&gt; than &quot;run qmake, run make&quot;. &nbsp;I got a zillion errors about not finding header<br>
&gt; files.<br>
&gt;<br>
&gt; What do I need to do to properly compile the unit test?<br>
&gt; Thanks!<br>
&gt; Steven<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Qgis-developer mailing list<br>
&gt; <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
&gt;<br>
&gt;<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>