Has anyone applied XP principles in Drupal development?
E.g. I wonder about such things as unit testing and whether it may be used in Drupal development, or about continous integration. I am not sure about unit testing, because Drupal environment is a very specific thing and not enough object oriented to have mock objects. As I see it, peer-reviews can be realized in Drupal development, but more at the level where you discuss with another person which of the combinations of code and modules can be used to solve some task - this is where you usually make decisions in Drupal.
Also, there could be some development practices that help teams build Drupal site collaboratively with better effectiveness and I wonder if there are any.
If anyone has developed big Drupal sites in team, I appreciate your feedback on this progress, e.g. what you did to make development and management better.
Have you looked at the Simpletest module? It's separate in D5 and D6, but in D7 it comes baked in. This is how I usually do my unit testing.
It's true that you can't do mock objects. instead, each test actually creates a brand new installation of drupal in a new database, runs whatever test you've specified, and then cleans up after itself. So, mocking the database is less of a problem.
That said, in Drupal 7 we've also got DBTNG, which is object oriented.