• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How important is testing our test cases ?

 
arul meh
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will appreciate if it is really important to write Junit tests for Junit Tests validity ?
 
S Santhosh
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thats my question
 
arul meh
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a novice in Junit Tests and would like to know - do we really write tests for tests ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks David. I have to do this at work - so I was curious - how much it is important.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34073
336
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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."
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic