If Ide Vendors Concentrated On Test Rigs Instead Of Debuggers

I may have said this before. Just to be sure, I'll say it now. The issue of the debugger is language specific. For example, in modern SmallTalks the debugger is integrated with the Unit TestingFramework, and is really useful to better pinpoint the location and cause of bugs. It is also possible to edit the code from the debugger and continue running it from the point of interruption, with no need for recompilation. -- Victor (from the XpMailingList)

If IntegratedDevelopmentEnvironment makers focused on tests...

-- Phlip (on the XpMailingList, and ignorant of both Smalltalk IDEs and Eclipse)


Drool... Many commercial IDE's (MSVS, CodeWarrior) have plugin interfaces for doing these kind of enhancements. Anyone want to take a whack at it? (and make a ton of money?)
EclipseIde already does a lot of these things. You can edit code in the debugger and continue from the last frame on the call stack (unless the edit changes methods in previous frames). The JUnit plug-in will create test cases and test suites for you. [JunitWithEclipse] The source browser doesn't distinguish between production code and test code per se, but I'm not sure what the advantage of that would be. Compilation happens on every save, and saves can be automatic when you run or debug. ExtractMethod is just one of many refactorings on the menu bar. The call stack of the production code and fixture is the same (they run in the same VirtualMachine and share at least one thread), so I don't understand how the IDE couldn't know both of them. The panel on the left has a tab for unit test suites and cases. One can run any set of tests or suites from the IDE. And it's free. -- EricHodges

DrScheme plus SchemeUnit is a start in this direction -- at least you can start a GUI test runner from a button on the toolbar.


Extract Method would be on the toolbar.

How is this related to test rigs or debuggers?

Pull out a chuck from a large method so it is callable in a unit test

I interpreted this the other way around: having written my TestFirst, I want to ExtractMethod the part that should be used in production.

EditText of this page (last edited April 7, 2013) or FindPage with title or text search