¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Getting back into C# testing
I've been away from serious OOP programming for a while, working in Prolog, etc. So now I'm back, using VS2013, and starting development with a large CAD API. My TDD experience has followed the
By Alan Baljeu · #35600 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
Starting with acceptance tests is a great idea. So is starting with high level unit tests, mocking the details, and then working your way down. Also, sometimes if I think I know what the essence of
By Adam Sroka · #35599 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
Michal, I write acceptance tests all at
By George Dinwiddie · #35598 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
Kaleb Pederson kaleb.pederson@... [testdrivendevelopment] wrote: Hi Kaleb, I hear what you are saying. But it really goes down to that gut feeling. Sometimes I want to see the whole story
By Michal Svoboda · #35597 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
[testdrivendevelopment] <testdrivendevelopment@...> wrote: Please do. Feel free to e-mail me or post a link to the writeup once it's done :). --Kaleb
By Kaleb Pederson · #35595 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
[testdrivendevelopment] <testdrivendevelopment@...> wrote: I remember seeing that post but I forgot to respond -- that's a good idea that I've never tried. Done properly that should
By Kaleb Pederson · #35594 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
Hi Kaleb, As others have said: Change gear depending on your experience wit TDD and comfort in the situation. There's a another point to be made though. Ron and Chet emphasized in their CSD
By Wouter Lagerweij · #35596 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
teaching is using Java and moving a method from a static call no a non-static call. The test suite now needs to be updated in multiple places, hence the duplication. If the entire test is written up
By Colin Vipurs · #35593 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
Kaleb, If you insist (as an earlier poster did) that you first write an assert, then you would avoid this ¡°compilation only¡± worry (as long as your assert is non-trivial). John D. Sent: 28
By Donaldson, John <john.m.donaldson@...> · #35592 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
[testdrivendevelopment] <testdrivendevelopment@...> wrote:
By Kaleb Pederson · #35591 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
[testdrivendevelopment] <testdrivendevelopment@...> wrote: I think you've just described my biggest concern with writing the entire test up front. When the entire test is written up front
By Kaleb Pederson · #35590 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
Thanks for the feedback Jeff. In thinking about "green" tests and the process taken with TDD, I think it boils down to the fact that the name of the test should represent the goal for the test. Along
By Kaleb Pederson · #35589 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
Answers inline. Again I would put that down to duplication. It's extreme, but if I call a method from 15 tests I see that as something that should be extracted
By Colin Vipurs · #35588 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
I would always do this when leaving for the day, mostly as a way of reminding myself in the morning what I was working on [testdrivendevelopment] <testdrivendevelopment@...> wrote:
By Colin Vipurs · #35587 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
A rule of thumb I followed for many years was to leave a failing test when taking a break. Charlie [testdrivendevelopment]" <testdrivendevelopment@...> wrote:
By Charlie Poole · #35586 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
Never trust a test you have never seen fall. Tests can pass for the wrong reasons. You have to trust then or get rid of them. That said, there are intermediate steps which are legitimately green
By Tim Ottinger · #35585 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
I think all the answers have been wise and sensible. But then, I think the answers all come from ¡°Ha¡± or ¡°Ri¡± practitioners, and I suspect Kaleb was talking to ¡°Shu¡± people. (If you are
By Donaldson, John <john.m.donaldson@...> · #35584 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
Exactly. You should only commit the test after you've gone through the full Red-Green-Refactor. In fact, assuming you're using DVCS or your own branch, I would go so far as to say that you should
By Steven Smith · #35583 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
You might want to consider the difference between a test during development locally and a test that have been checked in to the common repository. I have been confused by tests with names saying they
By Samuel ]slund · #35582 ·
Re: [TDD] Three Law of TDD - to strictly follow, or not?
Kaleb Pederson kaleb.pederson@... [testdrivendevelopment] wrote: Either approach you described can be justified. Test that just contains one variable is actually complete and says "the object
By Michal Svoboda · #35581 ·