Is my code really not unit-testable?

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-03-25T11:37:46Z Indexed on 2010/03/25 11:43 UTC
Read the original article Hit count: 224

Filed under:

A lot of code in a current project is directly related to displaying things using a 3rd-party 3D rendering engine. As such, it's easy to say "this is a special case, you can't unit test it". But I wonder if this is a valid excuse... it's easy to think "I am special" but rarely actually the case.

Are there types of code which are genuinely not suited for unit-testing? By suitable, I mean "without it taking longer to figure out how to write the test than is worth the effort"... dealing with a ton of 3D math/rendering it could take a lot of work to prove the output of a function is correct compared with just looking at the rendered graphics.

© Stack Overflow or respective owner

Related posts about unit-testing