On 07/01/07, <b class="gmail_sendername">Rob Sanheim</b> <<a href="mailto:rsanheim@gmail.com">rsanheim@gmail.com</a>> 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'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'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 =). For example:<br><br>Finished in 128.870144 seconds.<br>===============<br>392 tests, 2106 assertions, 0 failures, 0 errors<br><br>I've read many of the examples on many blogs and I don't see anything
<br>that could be applied to legacy test cases that are testing across<br>many associations. Or how to change functional tests to make it<br>possible to inject stubs instead of hitting the db.<br><br>Right now I'm thinking the only real options are going with test
<br>groups based on speed, and/or trying to use mysql's in memory db for<br>testing. Rewriting our tests from the ground up is definitely not an<br>option. Sqlite3 seems to finicky to handle anything beyond a very<br>
basic data model. Tools I'm trying to incorporate include mocha,<br>spec/unit, and zentest (mainly for autotest, I don'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 "legacy test cases that are testing across many associations"?<br><br>I find it'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>