Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JUnit Testing

 
anuj thite
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all ranch members,

i have a question about JUnit please guide me in this.

one of my friend told me to study JUnit for unit testing purpose.

Currently i have no job, no certification.

Can you please explain what is the diffrerence between manual testing which is done by software tester & unit testing.

i am rating myself in core java as between beginner & intermediate.

i have a basic knowledge of Servlets & Jsp.

At this stage, is it beneficial for me to study Junit ?

if it is beneficial, then please me suggest some books for studying from beginner level in unit testing.

Please give your suggestions.

Thanks in advance.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anuj,
Unit testing is automated testing. You just get a greed or red bar rather than having to look at the results manually. See more here.

As far as books go, a short book that I like is "Pragmatic Unit Testing." It covers how to write tests along with what good practices to use. I really like the focus on WHY for a beginner.

Once you write more complex code, "Test Driven" or "JUnit Recipes" covers how to test different types of code.
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may interest TestNG, it is better than JUnit.
 
Udaya Wijenayake
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This book will help you to start JUnit Testing.

JUnit in Action

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kengkaj Sathianpantarit wrote:You may interest TestNG, it is better than JUnit.

That's subjective. In any case, JUnit is more widely used so I think it will Anuj more when looking for a job.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic