# Generate scaffold should create tests, discuss

**URL:** <https://www.ruby-forum.com/t/generate-scaffold-should-create-tests-discuss/64457>\
**Category:** Rails\
**Created:** [June 26, 2006, 1:38am UTC](https://www.ruby-forum.com/t/generate-scaffold-should-create-tests-discuss/64457 "2006-06-26T01:38:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [June 26, 2006, 1:38am UTC](https://www.ruby-forum.com/t/generate-scaffold-should-create-tests-discuss/64457/1 "2006-06-26T01:38:42Z")

</div>

I think script/generate scaffold should create corresponding tests  
(unit tests, in particular). Almost everyone new to rails learns by  
looking at the code that scaffolding creates, and people could also  
learn by looking at test code generated. Also, it would form a good  
starting point for TDD, if you’re into that sort of thing. Ok, so the  
main benefits of tests being generated are for newbies (although it  
would possibly make things a bit simpler in some situations for  
experienced users too), but I think it is quite a good idea. What do  
people think?  
-Nathan
