On 07/01/07, <b class="gmail_sendername">Rob Sanheim</b> &lt;<a href="mailto:rsanheim@gmail.com">rsanheim@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hope this isn&#39;t too far off-topic on this list, as I think it would<br>largely go ignored on the main rails list.<br><br>I&#39;m looking for the most pragmatic way to speed up our test suite.<br>This is on an established project, and lets just say that we used way
<br>too many fixtures when we started =).&nbsp;&nbsp;For example:<br><br>Finished in 128.870144 seconds.<br>===============<br>392 tests, 2106 assertions, 0 failures, 0 errors<br><br>I&#39;ve read many of the examples on many blogs and I don&#39;t see anything
<br>that could be applied to legacy test cases that are testing across<br>many associations.&nbsp;&nbsp;Or how to change functional tests to make it<br>possible to inject stubs instead of hitting the db.<br><br>Right now I&#39;m thinking the only real options are going with test
<br>groups based on speed, and/or trying to use mysql&#39;s in memory db for<br>testing.&nbsp;&nbsp;Rewriting our tests from the ground up is definitely not an<br>option.&nbsp;&nbsp;Sqlite3 seems to finicky to handle anything beyond a very<br>
basic data model.&nbsp;&nbsp;Tools I&#39;m trying to incorporate include mocha,<br>spec/unit, and zentest (mainly for autotest, I don&#39;t use the view<br>testing stuff much).<br><br>thanks for any ideas or experiences!</blockquote>
<div><br>Can you give an example of one of your &quot;legacy test cases that are testing across many associations&quot;?<br><br>I find it&#39;s always more productive to discuss a concrete example.<br></div></div><br>-- <br>
James.<br><a href="http://blog.floehopper.org">http://blog.floehopper.org</a>