... Edwin, I'm still pretty sure I'm writing my code test first. I don't have a design on paper for what I'm writing, I'm writing tests before I write code,...
I think we all misunderstood our messages. (There's that darn communication problem again!) As usual, more information clears things up. Agile is about having...
... Well, Brian's not going to toot his own horn on this one, but he's been doing TDD longer than about 99% of the developers who've tried it. He's trained...
... Edwin, No harm, no foul. If we didn't feel passionate about this stuff, we wouldn't argue about it :) ... Actually, long-time Linux user who recently...
I am about to embark on refactoring an existing J2EE application at work. The current application has a simple data access object that returns various objects...
... If you aren't offending by a book recommendation, chapter 10 of _JUnit Recipes_ can tell you lots. :) The short version is this: if you just test that your...
I tend to think of acceptance tests as "system-wide" functional tests representing user stories (use cases). The end user (or a representative) of the entire...
With your permission – here's something I posted on my blog just now and thought this may be a valuable addition to Nunit in some way. (published here:...
Hi, I've got a weird problem with Nunit and it boils down to the code below. It seems that Asserts in methods on ThreadPool threads don't work (if you step...
... I looked at your code, and I think I understand what is happening. Which version of NUnit are you using? I've heard rumors that 2.2 solves this problem,...
John, Yes - Brian is right. It appears to be due to the exception occurring on another thread. Trapping the exception and then checking it, yields the ...
Well, I retried with v2.2, and the behaviour is slightly different. Now, the routine on the threadpool thread is interrupted when the Assert fails but the...
This bit of TDD magic brought to you by the Ruby-Talk mailing list via John Long of the Chicago Ruby Users Group. Pass a simple, empty Functor object in to the...
... <snip /> Now /this/ is programming. This is the stuff I miss by working in Java and C#. This is the stuff I'd rather be doing. This is just neat. ... Very...
Joe, I certainly like the idea of using mocks to test the DAOs. It definitely simplifies the tests and makes then run a lot faster. However, I am still a...
Thanks for J.B. for bringing to my attention this is something I could use with what I'm doing now... Thanks to Ryan and John for bringing it to us. I did this...
... If you're worried about SQL statements not working against schema changes, then add a smoke test suite that tries out all the SQL statements you run and...
I have never seen such framework. Still, I think you could use a C language based xUnit framework, compile it as a C ILE service program and call its...
JB, How do you propose implementation of a "smoke test" of the SQL statements that: 1. Runs automatically? 2. Does not introduce duplication? If the SQL...
Hi folks, We have a situation where we need to test a state machine that is effectively a many to many relationship, i.e. "If the User has privilege X, and the...
... The most obvious thing you didn't mention is Abstract Tests... An abstract test suite ABC' targets an abstract base class ABC. Concrete classes A, B, and C...
... Here is a glaringly obvious suggestion. Why not make the application data-driven? e.g. Use an XML table etc. to specify what happens for a particular...
I'm having the nastiest little problem with NUnit, and I can't figure out how to fix it. We have a team of a dozen users, and not everyone has this problem. ...