I assume that my project is decoupled enough to allow for unit testing. But how big, exactly, in terms of clases and functions does my project need to be to make unit testing worthwhile? We all make mistakes and no one's perfect, but I consider myself a decent programmer to handle small projects' errors with stepping through. Or is unit testing a hard necessity no matter of what size your project is?
How big does my project need to be for me to unit test it?
project management;programming practices;unit testing;error handling
Your project is big enough already.In my experience, one class and one function have been sufficient to consider the need for unit testing.    class Simple {        boolean reallySimple() {            return true; // how do we make sure it doesn't change to false?        }    }    class SimpleTest {        void assertReallySimple() {            // ensure reallySimple return value isn't changed unexpectedly            UnitTestFramework.assertTrue(new Simple().reallySimple());        }    }