On 19 August 2011 14:09, Alexandre Bergel <[email protected]> wrote: > Hi! > > I know there are many TDD shoguns around. > > I was wondering whether I am the only one suffering from the need to see the > definition of setUp before writing a test method. Unfortunately, current tool > does not automatically show the definition of setUp when I want to write a > new test. > The cost of seeing how the setUp is done is high: need to open a new window, > clicking to restore the context on the first window, ... > > Am I the only one?
Nope, I suffer from this problem too. I've been thinking about a more general problem, that of displaying multiple method definitions in the same place/window/whatever. It seems the solution is two-fold: * write a widget that can display multiple methods in the same pane, and * tell the system that you want to see certain methods together. In the case of tests, you could always use reflection - you're viewing a method starting with "test" in a TestCase subclass, so if there's a setUp method (or series of setUp methods, in the case of overriden methods), display them together. frank
