If you are attempting to do Test Driven Development (TDD) or Behaviour Driven 
Development (BDD) then you should write the tests first, thats part of these 
approaches to development (hence the driven part of the acronym).  

Debating wether a TDD/BDD approach versus a ‘test afterward’ approach is better 
is a big discussion but there are benefits to each, I will say that you are 
more likely to actually write tests if you write them before you write the code 
however.  

Regards
Jon Rowe
---------------------------
[email protected]
jonrowe.co.uk


On Friday, 24 July 2015 at 10:18, Askar wrote:

> Hello!
>  
> Nowadays I'm reading Rails 4 in Action book and I like it very much.
>  
> They're using TDD&BDD first, then building the rest as test goes.
>  
> I wonder which approach is better: Build the basics of the app without 
> testing, confirm that it works visually and then making TDD & BDD?
>  
> Or start straight away from TDD & BDD.
>  
> In the book, rspec, factorygirls and capybara used.  
>  
> --  
> You received this message because you are subscribed to the Google Groups 
> "rspec" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> (mailto:[email protected]).
> To post to this group, send email to [email protected] 
> (mailto:[email protected]).
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rspec/771c357b-5361-439e-83d1-51e976d0db3f%40googlegroups.com
>  
> (https://groups.google.com/d/msgid/rspec/771c357b-5361-439e-83d1-51e976d0db3f%40googlegroups.com?utm_medium=email&utm_source=footer).
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/08E0B51BF41245E2AE344A6973E100A7%40jonrowe.co.uk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to