3 ms·
Black box test - Testing a unit without any information about its internals. You provide inputs, you record outputs, and you have a spec. By definition, the au
by ohazi 6y ago
Black box test - Testing a unit without any information about its internals. You provide inputs, you record outputs, and you have a spec.
By definition, the author of a unit cannot write a black box test for it. Any test they write is going to be a white box (clear box?) test, because they know how the unit works.
If you interpreted the spec incorrectly when writing the unit, you're going to interpret it incorrectly in exactly the same way when writing the test. White box testing has its place, but you need a second person if you want to do black box testing.