Does "Unit Testing" fall under white box or black box testing? Or is it totally a separate type of testing than the other two?
White box testing can take several forms: Unit testing — tests written as part of the application code, which test that each component is working as expected.
Black box testing refers to any type of software test that examines an application without knowledge of the internal design, structure, or implementation of the software project. Black box testing can be performed at multiple levels, including unit testing, integration testing, system testing, or acceptance testing.
Unit testing is a software development process in which the smallest testable parts of an application, called units, are individually and independently scrutinized for proper operation. This testing methodology is done during the development process by the software developers and sometimes QA staff.
White-box testing (also known as clear box testing, glass box testing, transparent box testing, and structural testing) is a method of software testing that tests internal structures or workings of an application, as opposed to its functionality (i.e. black-box testing).
I think this article by Kent Beck referring more to TDD and unit-testing sums this up fairly well. Basically, it depends on how you actually write the tests*. Here is another article on the subject that might help clarify things.
*If you are testing from within your application, then it is whitebox. If you are testing it just like an outsider would make the calls to only your public facing API, then it is blackbox.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With