<br><br><div class="gmail_quote">On Sun, Dec 4, 2011 at 7:59 PM, Dimitar Petrov <span dir="ltr">&lt;<a href="mailto:mitakaa@gmail.com">mitakaa@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;">
You might want to check this blog post also: <a href="http://www.modernperlbooks.com/mt/2011/11/parallelism-and-test-suites.html" target="_blank">http://www.modernperlbooks.com/mt/2011/11/parallelism-and-test-suites.html</a></blockquote>
<div><br></div><div>thanks, but that&#39;s what got me into this mess.. well <a href="http://www.modernperlbooks.com/mt/2011/12/controlling-test-parallelism-with-prove.html">http://www.modernperlbooks.com/mt/2011/12/controlling-test-parallelism-with-prove.html</a> which also links to that..</div>
<div><br></div><div>ok, actually I&#39;ve tidied up the mess and I&#39;m rather pleased with how it looks.. I&#39;m going to have a lot more tests than this by the time I&#39;m finished so I think it&#39;s been well worth the effort.. (note the wallclock secs)</div>
<div><br></div><div>$ prove Lecstor/t BB/t BB-Site-Catalyst/t aid_proxy/AID-Proxy/t</div><div>...</div><div><div>All tests successful.</div><div>Files=29, Tests=369, 109 wallclock secs ( 0.15 usr  0.04 sys + 26.25 cusr  4.36 csys = 30.80 CPU)                                                                                  </div>
<div><br></div></div><div>$ prove -j9 Lecstor/t BB/t BB-Site-Catalyst/t aid_proxy/AID-Proxy/t</div><div>...</div><div><div>All tests successful.</div><div>Files=29, Tests=369, 19 wallclock secs ( 0.18 usr  0.04 sys + 34.14 cusr  4.98 csys = 39.34 CPU)                                                                                   </div>
<div><br></div></div><div>cheers,</div><div><br></div><div>J</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><br></div>

<div>Cheers</div><div class="HOEnZb"><div class="h5"><div><br><div class="gmail_quote">On Sun, Dec 4, 2011 at 10:49 AM, Jason Galea <span dir="ltr">&lt;<a href="mailto:lists@eightdegrees.com.au" target="_blank">lists@eightdegrees.com.au</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div><div class="gmail_quote">On Sun, Dec 4, 2011 at 7:10 PM, Tomas Doran <span dir="ltr">&lt;<a href="mailto:bobtfish@bobtfish.net" target="_blank">bobtfish@bobtfish.net</a>&gt;</span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br>
On 4 Dec 2011, at 04:13, Jason Galea wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hmm.. actually.. can I hand Catalyst::Test the schema I can get from Test::DBIx::Class?<br>
</blockquote>
<br></div>
I think you can just force replace the schema, with something like MyApp-&gt;model(&#39;DB&#39;)-&gt;schema($<u></u>mytestschema);<br></blockquote></div></div></div></div></blockquote><div><br></div></div><div>yup, works a treat.. thanks again.</div>



<div><br></div><div>$ prove t</div><div>...</div><div><div>All tests successful.</div><div>Files=6, Tests=90, 27 wallclock secs ( 0.07 usr  0.02 sys +  9.87 cusr  1.14 csys = 11.10 CPU)                                                                                     </div>



<div>Result: PASS</div></div><div><br></div><div><div>$ prove -j9 t</div><div>...</div><div>All tests successful.</div><div>Files=6, Tests=90,  8 wallclock secs ( 0.06 usr  0.01 sys + 11.24 cusr  1.34 csys = 12.65 CPU)                                                                                     </div>



<div>Result: PASS</div></div><div><br></div><div>woohoo!</div><div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div><div>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Alternatively, you can setup a test config (by writing out a config file with the extra DB details in) before using Catalyst::Test (although N.B. that use Catalyst::Test will happen at compile time, so you probably need the initial setup in a BEGIN block).<br>





<br>
Cheers<br>
t0m<br>
<br>
<br>
______________________________<u></u>_________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-<u></u>bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/<u></u>catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
</blockquote></div><br></div></div></div>
</blockquote></div></div><br>
<br>_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
<br></blockquote></div><br>