Jesper Young wrote:What "detailed code analysis" means exactly depends on the context. Where did you hear or read this?
JUnit is for automatic unit testing, not for code analysis. There are a number of tools that do static code analysis - such a tool reads your source code and analyses it using a number of rules, and warns you about potential bugs in your code. See, for example FindBugs and PMD.
I was asked this question in an inteview and I said Junit. I wanted to confirm with you guys and looks like I am wrong anyways
Jesper, I have few more questions.
1).Can't we do the analysis without any tools and if we can, do people follow this approach?
2).Does dynamic analysis come under the code analysis too?
3).Does white and black box testing methods come under the code analysis too?
Thanks.