<html style="direction: ltr;">
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="latin-charset" bgcolor="#FFFFFF"
text="#000000">
I would first crawl all directories in your Eclipse projects root
looking for tests. You can use the os.walk API. Note that if you
have non-PyDev Eclipse projects, you can quickly dismiss them from
your crawl: PyDev projects have a ".pydevproject" file in their root
directory.<br>
<br>
Once you've found all files with the tests, you can import them by
first programatically using __import__.<br>
<br>
<div class="moz-cite-prefix">On 12/27/2012 03:57 PM, Oren Livne
wrote:<br>
</div>
<blockquote cite="mid:50DCC45A.8040601@uchicago.edu" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Dear Tal,<br>
<br>
Thanks. I thought of creating the Test project, but don't know
how to use the dynamicism to import everything. Is there a good
tutorial on that?<br>
<br>
Oren<br>
<br>
On 12/27/2012 3:51 PM, Tal Liron wrote:<br>
</div>
<blockquote cite="mid:50DCC2FF.4040203@threecrickets.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
I would create a new project called "Test", which just has one
test that uses Python magickal dynamism to import tests from all
the other projects.<br>
<br>
When it works I would share this snippet online so that others
may enjoy.<br>
<br>
<div class="moz-cite-prefix">On 12/27/2012 09:35 AM, Oren Livne
wrote:<br>
</div>
<blockquote cite="mid:50DC6ACE.2050602@uchicago.edu" type="cite">Dear
All, <br>
<br>
I work in eclipse. I have 10 projects, each of which has a
main test suite that I can run with a PyDev PyUnit run config.
How can I create a super-test PyDev suite/run config that runs
all of them with one click? <br>
<br>
Thanks, <br>
Oren <br>
<br>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Chicago mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Chicago@python.org">Chicago@python.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/chicago">http://mail.python.org/mailman/listinfo/chicago</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
A person is just about as big as the things that make him angry.</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Chicago mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Chicago@python.org">Chicago@python.org</a>
<a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/chicago">http://mail.python.org/mailman/listinfo/chicago</a>
</pre>
</blockquote>
<br>
</body>
</html>