This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Unit testing?  RSS feed

 
Bartender
Posts: 1868
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.
 
Bartender
Posts: 1213
83
Angular Framework AngularJS Eclipse IDE Hibernate Java 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: 1868
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
Bartender
Posts: 1213
83
Angular Framework AngularJS Eclipse IDE Hibernate Java 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: 1868
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.
     
    Saloon Keeper
    Posts: 10251
    216
    • 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
    Bartender
    Posts: 1213
    83
    Angular Framework AngularJS Eclipse IDE Hibernate Java 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: 393
    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: 393
    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
     
    Get me the mayor's office! I need to tell her about this tiny ad:
    how do I do my own kindle-like thing - without amazon
    https://coderanch.com/t/711421/engineering/kindle-amazon
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!