• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Unit testing?  RSS feed

 
Bartender
Posts: 1856
81
Android Chrome IntelliJ IDE Java MySQL Database
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a lot of information to know about with regards to unit testing. JUnit is one of the more popular unit testing frameworks.
Many books and tutorials have been created on the subject of unit testing. CodeRanch has an area regarding testing which can be found here https://coderanch.com/f/68/Testing.

Unit testing can easily be done incorrectly. However they do not need to complex/complicated.
 
Saloon Keeper
Posts: 1174
73
Eclipse IDE Hibernate jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for bringing Testing forum into notice. I know there are some books listed in Good Books On Testing: Introductory yet in that, for a beginner which book do you recommend for JUNIT testing?
 
Pete Letkeman
Bartender
Posts: 1856
81
Android Chrome IntelliJ IDE Java MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ganesh Patekar wrote:Thank you for bringing Testing forum into notice

You are welcome.

Ganesh Patekar wrote:for a beginner which book do you recommend for JUNIT testing?

I do not have any recommendations regarding this.
For those who are new to unit testing may I suggest that you look go to the book reviews forum and using the search box to search for 'testing'.
You will be able to find many reviews on books about testing. Also if you are the testing forum and do a search for 'books' you should find a few helpful postings/threads.

I find that it is kind of hard to qualify someone as a beginner as everyone has their own experience and knowledge base.
 
Ganesh Patekar
Saloon Keeper
Posts: 1174
73
Eclipse IDE Hibernate jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Opps!! I was looking into old book review page which had reviews made in 2003, 2004. I almost forgot new rich media book review grid, yes found two reviews but those books used JUnit 4. The latest one is JUnit 5 which I guess focuses on Java 8 and above so I think I better look for a book which uses Java 8 and above features...

I find that it is kind of hard to qualify someone as a beginner as everyone has their own experience and knowledge base.

Ya that's also right...
 
Pete Letkeman
Bartender
Posts: 1856
81
Android Chrome IntelliJ IDE Java MySQL Database
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are two different things at play here:
  • Unit Testing
  • Using JUnit

  • A general knowledge and ability to understand unit testing is a great thing to have/know. I do not think that unit testing is going away any time soon.
    Given that, a book which was published a few years ago about unit testing could should be a valuable resource.

    On the other hand a book/resource on using JUnit before version JUnit 4 may not be too helpful.
    I strongly suspect that most projects which use JUnit use either JUnit 4 or JUnit 5.
     
    Bartender
    Posts: 9494
    184
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    For the project, I went ahead and used JUnit 4, because I'm a really big fan of the Theories library. It really makes writing tests a lot of fun. Again, if anybody has a strong feeling about a certain version, I'm open to all suggestions.
     
    Ganesh Patekar
    Saloon Keeper
    Posts: 1174
    73
    Eclipse IDE Hibernate jQuery MySQL Database Spring Tomcat Server
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thank you both of you. I'll get back to you very soon, probably about JUnit 5.
     
    Ranch Hand
    Posts: 355
    8
    BSD Debian Open BSD
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    Ganesh Patekar wrote:... for a beginner which book do you recommend for JUNIT testing?



    I was started on TDD with Test-Driven Development: Extensive Tutorial by Grzegorz Gałęzowski and was very helpful and inspirational as a first read despite its shortness; can recommend it to anyone who just start .  
    I have the printed version but you can find it as well as HTML book  or also as PDF  too from archive.org. That's an Open book , If you're lazy example's code  can be found in github.

     
    Harry Kar
    Ranch Hand
    Posts: 355
    8
    BSD Debian Open BSD
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    Harry Kar wrote:

    Ganesh Patekar wrote:... for a beginner which book do you recommend for JUNIT testing?



    I was started on TDD with Test-Driven Development: Extensive Tutorial by Grzegorz Gałęzowski and was very helpful and inspirational as a first read despite its shortness; can recommend it to anyone who just start .  
    I have the printed version but you can find it as well as HTML book  or also as PDF  too from archive.org. That's an Open book , If you're lazy example's code  can be found in github.


    For the most recent version(is a continuous on going work) refer to github and if you want contribute too
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!