Explain who should use JUnit – a developer or tester? Why you use JUnit to test your code?

devquora
devquora

Posted On: Feb 22, 2018

 

JUnit is more often used by developers to implement unit tests in JAVA.  It is designed for unit testing that is more a coding process and not a testing process. However, many testers and QA engineers use JUnit for unit testing.
JUnit is used because
  • It test early and does automate testing.
  • JUnit tests can be compiled with the build so that at unit level, regression testing can be done.
  • It allows test code re-usage.
  • JUnit tests behave as a document for the unit tests when there is a transfer.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    JUnit Interview Questions

    Explain what is JUnit?

    JUnit is a testing framework for unit testing.  It uses Java as a programming platform, and it is an Open Source Softw..

    JUnit Interview Questions

    Mention what is the difference between JUnit and TestNG?

    JUnit TestNGIn JUnit the naming convention for annotation is a bit complicated for, e.g., “Before”, “After”..

    JUnit Interview Questions

    Mention different methods of exception handling in JUnit?

    Exceptional or analogous conditions during program execution require special processing methods and this exception hand..