<div dir="ltr"><meta charset="utf-8">Hey Yoni,<div><br></div><div>I don&#39;t know any main-stream plugin that does what you ask for, but I&#39;d advise you to follow this issue in nose&#39;s site: <a href="http://code.google.com/p/python-nose/issues/detail?id=255" target="_blank">http://code.google.com/p/python-nose/issues/detail?id=255</a></div>
<div><br></div><div>It contains a patch that does what you want and more, and might be a bit alive (last post a few weeks ago).</div><div><br></div><div>Cheers,</div><div><br></div><div><br></div><div class="gmail_quote">
On Mon, Nov 15, 2010 at 18:20, Yoni Tsafir <span dir="ltr">&lt;<a href="mailto:yonix85@gmail.com">yonix85@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr"><div>Hi there,</div><div>I like writing tests that use a lot of random values as input.</div><div><br></div><div>Something I found useful during my experience in other languages, is to have some kind of test runner that prints the initial random seed when a test fails, and lets you run your tests with the same random seed again so you can debug it and tell why the test failed with this particular seed.</div>

<div>This of course forces your tests to use a the singleton instance of random instead of instantiating new classes of &quot;random.Random&quot; (or maybe use another singleton random object).</div><div><br></div><div>Now, before I start writing this mechanism in python as well, I was wondering if there is anything already implemented in this area (maybe some kind of nose&#39;s hidden feature or something), or any other suggestions of ways to achieve what I&#39;m seeking after.</div>

<div><br></div><div>Thanks!</div><div>Yoni.</div></div>
<br>_______________________________________________<br>
testing-in-python mailing list<br>
<a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Aviv Ben-Yosef<br>Miracle Max: You rush a miracle man, you get rotten miracles.<br>
<div>@<a href="http://twitter.com/avivby">avivby</a> <a href="http://codelord.net">http://codelord.net</a></div></div>