At the company I'm working right now there are no standards, except that you are expected to write tests.<div><br></div><div>One policy I like is: no commits while the build is red (except to fix the build of course). Obviously, you should run the tests before committing, but hey! sometimes we forget, and sometimes the tests take half an hour to run and almost nobody ever runs them completely.</div>
<div><br></div><div>About libraries... we have several projects with different libraries. The big policy here is: don't add libraries just because. If the project uses Test::Unit, don't use RSpec.</div><div><br></div>
<div>Then there are a lot of preferences. I prefer factories to fixtures, test-unit to rspec but I like shoulda (both matchers and context). I'm playing around with capybara. We'll see how that goes. Oh. please, no cucumbers for me.</div>
<div><br></div><div>If you are setting the rules, goes for what works, which obviously mean, what you like. If you are not, I think the golden rule is to adapt... write rspec when everybody around is doing so, write test-unit when everybody around is doing so, run away when everybody around is not writing test.</div>
<div><br><div class="gmail_quote">On Thu, Aug 25, 2011 at 16:46, Neil Middleton <span dir="ltr"><<a href="mailto:neil.middleton@gmail.com">neil.middleton@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi All,<div><br></div><div>Just a quick question really, and one that I'm sure could kick off a fight, but do you guys who work in teams have any testing standards that you stick to? For instance, which libraries you use, what sort of tests & coverage you expect etc? Do you have any requirements from devs before they commit or are you all fairly free and easy ;) ?</div>
<div><br></div><div>Thoughts more than welcome.</div><div><div><br></div>-- <br><font color="#888888"><div>Neil</div><br>
</font></div>
<br>_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>J. Pablo Fernández <<a href="mailto:pupeno@pupeno.com">pupeno@pupeno.com</a>> (<a href="http://pupeno.com">http://pupeno.com</a>)<br>
</div>