WHAT'S BLACK BOX UNIT TESTING ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

WHAT'S BLACK BOX UNIT TESTING ?

I recently had my final exam for a software engineering course for my masters program and one of the questions on the exam was the following: Unit Testing is considered: a. White-box Testing b. Black-box Testing c. Either

20th Dec 2017, 3:08 PM
Pawan Kumar
Pawan Kumar - avatar
2 Answers
0
Unit testing falls under WHITE box testing. Unit testing is a testing of units class of the codes. So, we need to look into the codes for the unit testing. whereas the black box testing is a testing of overall application.
20th Dec 2017, 3:20 PM
Vijay
Vijay - avatar
- 3
black box testing is for testing features through providing input and checking output, but without any knowledge of implementation. technically you can do some black box testing at unit test level, but unit test should usually include some white box testing.
20th Dec 2017, 5:09 PM
ifl
ifl - avatar