| Author |
programmer, object tests
|
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26496
|
|
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?
|
[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
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
Originally posted by Jeanne Boyarsky: those that require a database, server, etc?
Isn't this by definition an functional/integration test?
|
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26496
|
|
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
Joined: Aug 05, 2004
Posts: 87
|
|
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.
|
Author of <a href="http://www.amazon.com/exec/obidos/ASIN/1932394230/ref=jranch-20" target="_blank" rel="nofollow">JUnit Recipes: Practical Methods for Programmer Testing</a>
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26496
|
|
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
Joined: Aug 05, 2004
Posts: 87
|
|
|
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
internet detective
Marshal
Joined: May 26, 2003
Posts: 26496
|
|
J. B., Ok. I understand the terminology now. Thanks!
|
 |
 |
|
|
subject: programmer, object tests
|
|
|