Quality of Code in unit tests?
        Posted  
        
            by 
                m3th0dman
            
        on Programmers
        
        See other posts from Programmers
        
            or by m3th0dman
        
        
        
        Published on 2012-06-27T08:45:24Z
        Indexed on 
            2012/06/27
            9:22 UTC
        
        
        Read the original article
        Hit count: 412
        
unit-testing
|code-quality
Is it worth to spend time when writing unit tests in order that the code written there has good quality and is very easy to read?
When writing this kinds of tests I break very often the Law of Demeter, for faster writing and not using so many variables. Technically, unit tests are not reused directly - are strictly bound to the code so I do not see any reason for spending much time on them; they only need to be functionaly.
© Programmers or respective owner