From: pat eyler Date: 2005-06-08T07:25:59+09:00 Subject: Re: new article On 6/7/05, Ghislain Mary wrote: > Hi, > > Sorry for the late reply but I didn't have the time to read this article > before today. No problems, feedback is always good. > > First, I'd like to say that I found this article very interesting and > well written (easily understable by a newbie I think). > Good, that's my target. > But I have a question. The article is entitled 'Test-first programming > with Ruby' but when talking about ZenTest you tell that it "can also > work in reverse, loading a test suite and writing code stubs for every > test" which corresponds to what this is all about. However the examples > you are showing after that are examples to go from code to tests. Why > didn't you show how to go from tests to code using ZenTest? > I did, perhaps it didn't show up very well: Letting ZenTest write code stubs for you works the same way. If you were to run the tool against your existing ts_r43.rb like 'ZenTest.rb ts_r43.rb', it would generate the output shown here: 1 class R43 2 def key 3 raise NotImplementedError, 'Need to write key' 4 end 5 def echo 6 raise NotImplementedError, 'Need to write echo' 7 end 8 end Since all that ZenTest is writing for you are code stubs (which look a *lot* like test stubs) I probably need to be more explicit about what's going on. > Ghislain > > -- thanks, -pate ------------------------- We are often unable to tell people what they need to know, because they want to know something else, and would therefore only misunderstand what we said - the Raven (George MacDonald, Lilith)