Assumptions, imagine we are selling a software API:
a “system test” verifies that a system works by calling it’s public interface e.g. assert(init()==true) or assert(MY_PI > 2 && MY_PI <= 10)
a set of “unit tests” verifies the public interface of implementation details (assuming OOP: all public methods and fields) does what is expected
an “integration test” is something in between and is not really important for the question.
What I wonder is what is the term/s for more localized whitebox tests :
private methods(and if You cluster that with “unit”, what about lambdas?)
assert()*s peppered inside methods/functions.
* – referring to C++ asserts which compile to no operation in release code; not python asserts which are beautiful ifs
Source: Read More