wood burning stoves*
The moose likes Testing and the fly likes Effective Unit Testing: connections between unit tests and requirements Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Effective Unit Testing: connections between unit tests and requirements" Watch "Effective Unit Testing: connections between unit tests and requirements" New topic
Author

Effective Unit Testing: connections between unit tests and requirements

marcos robinson
Greenhorn

Joined: Nov 20, 2012
Posts: 5
Can one connect unit tests with higher-level entities like requirements, or even acceptance tests?
If so, can you explain?
Thanks!
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Ah, the neverending quest for requirements traceability

Technically, sure you can annotate the life out of your unit tests with requirement ID's and whatnot. Whether that makes much sense in terms of cost and benefit, I doubt it. For instance, I can't even imagine the heuristics for systematically deducing which of the hundreds of features of your CRM system (for example) relate to the EmailValidator class and its dozen tests. How about that component that you use for all the buttons on your UI? Surely the tests for that component should be tagged with any user-visible feature in the system that involves pushing a button.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
marcos robinson
Greenhorn

Joined: Nov 20, 2012
Posts: 5
Ah, seems like this is a tricky area.
thanks Lasse!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Effective Unit Testing: connections between unit tests and requirements