Translate

Monday, December 19, 2016

JUnit

Last post introduced unit testing and specifically c# unit testing. I have decided to continue that train of thought and do this post on the basics of JUnit and specifically JUnit in Eclipse.

I have decided to let the videos and screenshots describe what is going on





This is adding a test suite and test case to a java project. As you can see it is actually very similar to adding unit tests in Microsoft visual studio.











This is showing the testing menu that is available once you have created your test cases and test suites.



This also allows you to run only certain tests not necessarily all of them. It also allows you to tell what tests have failed and what hasn't.