Unit testing might sound a little technical but don’t let that scare you. I would try and explain in simple terms what it is and why it should be done.
Let me first put some context in place. If you put carrot in a juicer at one end and you get nice carrot juice at the other and you are not aware of the internal working of the juicer, then that juicer for you is a black box. You couldn’t care less whether there is complex machinery inside or just a small gopher that squeezes the juice out of the carrot and pours it out. That’s what a black box is. You provide input and you get output while being oblivious to internal processing.
Black box testing gets its name from the above concept of a black box. You provide input on a form in a software application (consider…
View original post 649 mots de plus