File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes How important is testing our test cases ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "How important is testing our test cases ?" Watch "How important is testing our test cases ?" New topic
Author

How important is testing our test cases ?

arul meh
Greenhorn

Joined: Sep 19, 2009
Posts: 27
I will appreciate if it is really important to write Junit tests for Junit Tests validity ?
S Santhosh
Ranch Hand

Joined: Mar 03, 2005
Posts: 73
arul meh wrote:I will appreciate if it is really important to write Junit tests for Junit Tests validity ?


where do you stop then?
arul meh
Greenhorn

Joined: Sep 19, 2009
Posts: 27
Thats my question
arul meh
Greenhorn

Joined: Sep 19, 2009
Posts: 27
I am a novice in Junit Tests and would like to know - do we really write tests for tests ?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You'd have to make sure the tests for the tests were working.

I'd never unit-tested a test case--that strikes me as weird. Don't get me wrong--test cases *can* be wrong, but you have to stop somewhere.
arul meh
Greenhorn

Joined: Sep 19, 2009
Posts: 27
Thanks David. I have to do this at work - so I was curious - how much it is important.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

David Newton wrote:You'd have to make sure the tests for the tests were working.

I'd never unit-tested a test case--that strikes me as weird. Don't get me wrong--test cases *can* be wrong, but you have to stop somewhere.

I have, but only on rare occasions. When I'm writing a generic test that is meant to be extended and I don't have any code to run it against. In this case, the test case is the product though, so I am testing the "real code."


[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
 
 
subject: How important is testing our test cases ?