A Review of Pair Progamming with Ben - and the Recording
Do you find that TDD is sufficiently fast that you can still knock out use cases in half a day to a day per while including the time to write the tests?
How do you handle integration tests? Do you set up Selenium scripts? For a project with say 20 use cases with an average of 5-8 screens, how long do you spend setting up the scripts, and are there any hints or tips for doing it more quickly?
What about acceptance tests? How do you document them? How long does it take to plan, document, explain, revise, agree and implement them? Any hints on doing it more quickly while keeping up the quality>
And finally, what about load testing? I usually avoid this on smaller projects as most of my clients don't get load. Do you have a standard load testing setup with dedicated load balance servers for testing projects on? How do you agree meaningful tests when load is so dependent on the exact click throughs, the precise search requests, etc.? What is the lowest price you'd do load testing for? Have you found a way to load test a meaningful application in a day? And what about any issues that arise? Does anyone fixed bid projects with non-functional requirements like number of users or do you just fixed bid the functionality (if required) and then charge by the hour for any tweaking of code and SQL required to hit the non-functionals. If you DO fixed bid projects with meaningful non-functional requirements, how do you estimate the effort required?
Any other types of testing you employ?
Well worth checking out.
Anyone else have thoughts on DAO unit testing or TDD anti-patterns?
Definitely worth keeping an eye on!
However, cfcUnit is only as good as the tests created and while there are resources out there for writing good tests, it seems to me that if your model metadata is sufficiently rich, a lot of the tests should be able to be generated automatically to capture a lot of the likely failure points.
I was just wondering if anyone in the CF world had been doing anything in terms of automating the creation of unit tests?
From a slightly different direction, has anyone had any experience with JesTer? Looks like a very interesting tool . . .
The goal is to provide patterns from experienced developers to help the rest of us to do a better job of writing our unit tests.
A tool like an xUnit framework (cfcUnit in ColdFusion) is really just a starting point for unit testing as there are all kinds of issues in designing tests. A set of proven patterns for designing and implementing unit tests should be a welcome addition to the library!