This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

programmer, object tests

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In one of the sample chapters, JB explains his terminology of progammer and object tests. I assume that programmer tests include object tests and integration/functional tests written by the programmer.

Do you use any distinction between object tests that run as pure unit tests and those that require a database, server, etc?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeanne Boyarsky:
those that require a database, server, etc?
Isn't this by definition an functional/integration test?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lasse,
Yes, of course. I am trying to figure out if JB includes those as object tests in his terminology. Sometimes they test just one object (like a DAO.)
 
J. B. Rainsberger
author
Ranch Hand
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use the term "isolated object test" to refer to a test that exercises a single object in isolation. That means that I simulate all other collaborators, be they databases, network resources, or other Java objects.

A "programmer test" is any test a programmer writes to increase her confidence that the code does what she thinks it does.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
J.B.,
That was the terminology I was looking for! What do you call the non-isolated object tests?
 
J. B. Rainsberger
author
Ranch Hand
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An object test that isn't isolated is, I suppose, an integration test; but for me, object tests should be isolated to the extent possible. I emphasize this point by throwing in the (redundant) word "isolated".
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
J. B.,
Ok. I understand the terminology now. Thanks!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic