(I was originally going to post this on
Stackoverflow.com, but I think it may have been asked enough in various forms to answer my question...)I'm keen on the idea of TDD, and I find it works well for non-UI code. However, recently I've found myself working on interactive visualisation tools and other UI components and I'm finding it difficult, if
(
Read more... )
Comments 6
(The comment has been removed)
Reply
(The comment has been removed)
For a component which enables some form of HCI, the only tests that can be written before the tool is designed are qualitative rather than quantitative, e.g. "when I move the mouse over this control it should highlight the grid square the mouse is above". This description of behaviour doesn't define a specific test so you can't use it to drive the development of the component itself. Certainly it's impossible to write a unit test for this kind of thing.
The unit testing of GUIs composed of pre-existing components with already well-defined APIs is another area entirely, but still one in which I think TDD is of little to no use at all.
Reply
The question in your case is, would it be easier to invent AI than to test it manually? ;-)
Reply
Reply
Leave a comment