... I usually try and keep the tests in a seperate EXE project, and the SUT in a seperate COM DLL project, having them both under one project group (similar to...
... I think that this overcomplicates your perspective right away. When I wrote a (very simplistic) tile engine, I started with a story that went like this: I...
... Even this story is too broad and too ambiguous (e.g., "possibly"?) to write tests for, let alone implement in a short period of time. It also does not...
... to ... I think you're confusing scope here. The "main story" is more of an inspiration to the designer than a testable requirement. This story is...
I throw tests away if 1) they are obviated (subsumed in more interesting tests) or 2) the requirement is withdrawn. If #1 and #2 problems in your email have...
Hi Steven, ... Good point. But we are using system APIs for most of that stuff; APIs that (hopefully) were tested by those vendors. I'm still under the...
Hi Tim, ... criteria, ... Something to keep in mind. Thank you. ... too far ... control that ... commit ... "Subversion" seems to be working for us pretty...
With apologies about possibly posting too much... ... here are some observations from a newb that might sound familiar (hopefully!) or distressing. Take your...
... That is the essence. If you already decided about the what the solution will look like, how can you claim that you're tests driving your design? [Non-text...
At this month's Extreme Programming San Diego (XPSD) meeting, Phlip Plumlee will teach us how to perform Test-Driven Development for Ajax under Rails. Phlip...
I know your pain. This is how I TDDed in C++: -Create your unit test test project. -Write your test first using your unit test framework (I used UnitTest++). ...
Hi All, NUnit 2.4.2 is available at http://nunit.com/?p=download NUnit 2.4.2 fixes a number of outstanding bugs and adds a number of new features. Culture and...
Hi Jeff, ... The reason why people continue using the Stack as a first example might simply be that "others have used it (and seem to have survived)", not...
... "It's not a bug, it's a feature!" In .Net and VB6, TDD tends to produce production-code that is in DLL's, wheras the final EXE just contains basic...
... I've also encountered this feeling when doing "need-driven" TDD as described in the "Mock Roles, Not Objects" paper (http://www.jmock.org/oopsla2004.pdf)....
I'm building a phone number data washer, and my first tests are to check positive and negative results from validating a phone number. My tactic to valid...
... illegal ... check ... illegal ... The name I've heard for approaches to this problem is "scattershot" or "shotgun" testing - you create a representative...
I beg your forgiveness in advance for the length of this post, but the subject matter was such that I couldn't shorten it up any more than it is. I am fairly...
Why not move the production code into a dynamic library? And link to that library from your executable and your test executable? Cheers, Manuel ... -- ...
Hey Joseph, ... UnitTest++). ... Sounds very familiar. Is there a way to get "green" or "red" from UnitTest++? Is there a GUI front end for it? That would be...
Hi Avi, ... Our code is generally linked by module in static libraries. The time savings has more to do with compiling each static library and then the test...
Hi Manuel ... That would result in quicker link times across the board... however, that would fundamentally change much of our application framework. We'll...
Hey Avi, ... You pretty much nailed it. It can feel like you're taking several baby steps--through tar! I suppose once the iteration is complete... if the ...
... Sounds like an excellent situation to simply use a generic "validation" interface (or possibly a few different interfaces, depending on how heterogenous...
... Joe, Even if you couldn't do unit testing, I think this would benefit from integration level testing. That is, just take a bunch of example XML files, run...