What is the difference between unit testing and
functionality testing ?
Answer Posted / yauri
I'd like to add more explanation about unit testing here as following:
unit testing is whitebox test which is used to test the single piece of code or module (commonly it will be a method of a class). But, in unit test, we are suppose to not using the high resource (e.g. database, web service, etc) and even we don't need to start the server (whole of the application). So, if there's a dependency with the secondary object (a.k.a collaborator), we can use "Test Double" technique (either Dummy, Fake, Stub, Mock). Usually i use Mock objects (e.g. mockito, power mock, easy mock, etc) to replace the real object for testing purpose.
And please notice that basically we can do the unit testing either after writing the production code or before writing any production code.
In extreme programming, we will write the unit test first before write any production code (read Uncle Bob's book ^_^). Commonly it recognized as "Test Driven Development".
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
hi every one can you send me ISTQB Course material on my Email id deeptimundra997@gmail.com
Genarally what we have to tell. If anybody asks in the interview. what are challenges u faced in the Project and what are the Risks u faced in the Project, Anybody can suggest it ......Thanks in Advance....
What is localization testing (l10n testing)?
how to test a web application manually?can u explain indetail?
If client give you a project then which testing you will perform first
Can list out some disadvantages of manual testing?
please send me database stored procedure checklist.
what is the difference between Test-bed and test topology?
What is error cusing tecnique
How to do manual testing of a E-insurance project (end to end process)
what are the test bugs
Explain compatibility testing with an example.
Negatives test cases of gmail login page With its severity , priority and expected results columns Through test case template-oodles technologies gurgoan
What is coverage and what are the different types of coverage techniques?
What is split testing?