• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Unit testing?

 
Bartender
Posts: 1868
81
Android IntelliJ IDE MySQL Database Chrome Java
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 1251
87
Hibernate jQuery Spring MySQL Database Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1868
81
Android IntelliJ IDE MySQL Database Chrome Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 1251
87
Hibernate jQuery Spring MySQL Database Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1868
81
Android IntelliJ IDE MySQL Database Chrome Java
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 15737
    368
    • Likes 1
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    Bartender
    Posts: 1251
    87
    Hibernate jQuery Spring MySQL Database Tomcat Server Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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: 393
    9
    Open BSD BSD Debian
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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: 393
    9
    Open BSD BSD Debian
    • Likes 1
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
     
    Everybody's invited. Except this tiny ad:
    Smokeless wood heat with a rocket mass heater
    https://woodheat.net
    reply
      Bookmark Topic Watch Topic
    • New Topic