Unit test is a generic term for any test of an independent part of a program? Or is it a exclusive term for object-oriented paradigms , with procedures already known?
Whenever I find any post related to unit testing, the vast majority quotes terminology already pertaining to the subject (mock, automated tests, etc.). It forms a discipline grid giving the impression of being a generic term, sometimes giving the impression of being a universal good practice platform for development. Other well-intentioned posts in relation to the question focus on the application of the unit test to a given platform (Shell, Jasmine, etc.). Others still start with a good definition, but they end up diverting to practical examples, moving away from the definition that I have not yet understood. The result of these readings is usually to have more questions than answers.
What are the main types that exist? And what ways to apply these?
There are two good topics here in SOpt, but that did not completely satisfy my doubts (apart from being different questions): What is the difference between unit test and integrated test What are Unit Tests used for? advantages?