Hi Severin, <br>This is great.  We do have lots of unit testing framework.  This is a good place to start to read about it <a href="http://www.ros.org/wiki/DevelopersGuide#Testing">http://www.ros.org/wiki/DevelopersGuide#Testing</a>  <br>

<br>In general if you do "rosmake -t STACKNAME" it will compile and test all packages in the stack.  Assuming you're off of trunk/unstable and working on rospy "rosmake -t ros_comm" would give you a good idea if all things are functional.  You can find lots of other ways to test smaller increments in the documentation, which will be useful for rapid iteration.  <br>

<br>Tully <br><br><div class="gmail_quote">On Mon, Nov 29, 2010 at 8:24 AM, Severin Lemaignan <span dir="ltr"><<a href="mailto:severin.lemaignan@laas.fr">severin.lemaignan@laas.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">On 11/26/2010 07:31 PM, Ken Conley wrote:<br>
> Is this meant to be a backwards compatible implementation?<br>
<br>
</div>Yep, we try to ensure that everything runs unchanged with Python 2.x<br>
(but, it requires Python >= 2.5 (for relative imports) and *maybe*<br>
Python >= 2.6 - since I didn't test anything with Python 2.5).<br>
<br>
Our approach is the following one:<br>
  1- run the '2to3' script<br>
  2- make it work with Python 3<br>
  3- make it work again with Python 2<br>
<br>
The third step mainly involve alternative package import. The right<br>
package is selected with this kind of statement:<br>
try<br>
   import ModulePy3<br>
except ImportError:<br>
   import ModulePy2 as ModulePy3<br>
<br>
which is more or less the recommended way to maintain backward<br>
compatibility.<br>
<br>
I was wondering: does WG have some kind of unit-testing framework for<br>
Python scripts? because I'm quite sure that we leave out a lot of<br>
run-time errors during the conversion process...<br>
<div><div></div><div class="h5"><br>
Severin<br>
<br>
--<br>
          Séverin Lemaignan - <a href="mailto:lemaigna@in.tum.de">lemaigna@in.tum.de</a><br>
  [00]    PhD student on Cognitive Robotics<br>
/|__|\   Technische Uni München - IAS group / LAAS-CNRS - RIS group<br>
   ''     +498928917780 / +33561337844<br>
          <a href="http://www.laas.fr/%7Eslemaign" target="_blank">http://www.laas.fr/~slemaign</a><br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Tully Foote<br>Systems Engineer<br>Willow Garage, Inc.<br><a href="mailto:tfoote@willowgarage.com">tfoote@willowgarage.com</a><br>(650) 475-2827<br>