home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 32,808 of 33,346   
   Richard to All   
   Re: Unit Testing Frameworks (was Re: Sin   
   22 Jan 13 22:32:23   
   
   From: legalize+jeeves@mail.xmission.com   
      
   [Please do not mail me a copy of your followup]   
      
   Ian Collins  spake the secret code   
    thusly:   
      
   >But haven't you added a new method to SUT just to avoid the coupling?   
      
   Yes, because I have refactored the code in order to decouple.  This is   
   all basic stuff done to retrofit tests onto legacy code (i.e. code   
   without unit tests).  Nothing I'm proposing here is radical or   
   mind-altering, it's pretty standard stuff.  See "Working Effectively   
   with Legacy Code" by Michael Feathers.   
      
   If I were writing this code from scratch, I'd be writing it TDD and it   
   would already be decoupled from it's collaborators without making me   
   use link-time substitution for them.   
      
   Writing manual mocks vs. generating them from an interface   
   specification is orthogonal to decoupling from collaborators.   
   --   
   "The Direct3D Graphics Pipeline" free book    
        The Computer Graphics Museum    
            The Terminals Wiki    
     Legalize Adulthood! (my blog)    
      
      
         [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
         [ comp.lang.c++.moderated.    First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca