What is JUnit?
What is Junit?
JUnit i an open source Unit Testing Framework for JAVA.It is useful for Java Developers to write and run repeatble tests.Developers who are following test-driven methodology must write and execute unit test first before any code.
Once you are done with code,you should execute all tests,and it should pass.Every time any code is added,you need to re-execute all test cases and makes sure nothing is broken.
What is Unit Testing?
Unit testing is used to verify a small chunk of code by creating a path,function or a method.The term "unit"exist earlier than the object-oriented era.It is basically a natural abstraction of an object oriented system example a Java class or object(its instantiated form).
Unit Testing is used to indentify defectss early in software development cycle.
Unit Testing will compel to read our own code example:a developer starts spending more time in reading than writing.
Defects in design of code affect the development system.A succesful code breeds the confidence of a developer.
Why you need Junit Testing?
It finds bugs early in the code.Wich makes our code more reliable.
JUnit is useful for developers,who work in a test-driven enviroment.
Unit testing forces a developer to read code more than writing.You develop more readable,reliable and bug-free code wich build confidence during development.
Comments
Post a Comment