Alex Rivera | Logout

TDD and UML together

Asked 2010-06-13T00:50:16.853
13

I'm new to TDD approach so I'm wondering if anyone experienced wit this could enlighten me a little. I would like to get some leads how to use UML and TDD methodology together.

I've been used to: Design with UML --> Generate skeleton classes (and then keep it synchronized) -> Implement and finally Test. I must admit that testing part was the worst one, so I started to look for something else - TDD. So I have some general knowledge what is it about but before I proceed further, I am interested knowing how it goes together with software design especially UML.

So when I first design/create test, how can UML fit in? Would it be possible to design classes first, from them create skeleton classes, from them generate Unit tests which would be "filled" before actual implementation of UML pregenerated classes, would this approach break whole TDD? Or is there any other way that would keep UML and TDD together?

Edit
Report

1 Answer

6

If you're designing classes using UML, you're designing what you think the code will look like. But what you create using TDD is the reality.

Leave UML until the end, to document the results of the code you created using TDD.

answered 2010-06-13T01:39:03.077

Your Answer