This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Testing and the fly likes If you have ever doubting Unit Testing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "If you have ever doubting Unit Testing" Watch "If you have ever doubting Unit Testing" New topic
Author

If you have ever doubting Unit Testing

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

For the past few weeks I have been building a library for Android apps dealing with SQLite databases, and I am writing unit tests.

I can say 100% for sure, that without unit tests, I would never get this project finished. Or what I thought was finished was no where near finished.

Unit Tests are saving my arse. It is fully letting me know if I have created a good API, whether I have fully thought of all the possible combination of successful and unsuccessful things that a user of my library might create, and that my code actually does what it says it does and works correctly. That last one is pretty amazing, because I look at the code and it looks like it should work, and I even have an Android app that I am using it in that has that part work. But when testing it with all different scenarios, I found that I had a false sense of success.

Thank god we have Unit and Integration Testing to help define and literally help write our code.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30068
    
149

Nice testimonial Mark!


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: If you have ever doubting Unit Testing
 
Similar Threads
System Tests
Testing simulation
Unit Testing classes that aren't Activity/Service etc
Creating Unit Tests (with mocks and shunts!)
Testing Active Vs Passive or Explicit vs Implicit