Is unit testing a generic term? What types are there? And what ways to apply?

Unit test is a generic term for any test of an independent part of a program? Or is it a unique term for object-oriented paradigms , with procedures already known?

Whenever I find any post related to unit testing, the vast majority cite terminology already belonging to the subject (mock, automated tests, etc). Forms an Oras discipline grid giving the impression of being a generic term, oras giving the impression of being a universal good practice the development platform. Other Posts well intentioned regarding the question, focus on the application of the unit test to a given platform (Shell, jasmine, etc). Still others start with a good definition, but end up deviating 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 what are there? And what ways to apply these?

There are two good topics here in SOpt, but that haven't satiated my doubts completely (apart from being different questions): What is the difference between unit test and integrated test What are Unit Tests for and what are the advantages?

Author: Maniero, 2017-08-29

1 answers

Most of what you want to know has already been answered in Tests, TDD, Unit Test, QA and the like. What is the difference from the concepts about testing?.

Unit testing has to do with code quality, serves to improve its robustness, and can be applied to any paradigm.

Object orientation can help a bit apply unit tests, but modular programming too. It has more to do with the way of developing than with the paradigm specific.

There are several types of unit tests, there are several techniques to apply it, there are several tools.

What is generic and what is specific depends on the point of view, all terminology can be generic or specific according to how it is used. So the term is generic in one sense and is specific in another.

Read the Wikipedia article (in English ) to better understand, ali has the concepts. My understanding is that the people hinder what is easy, often with approach "practices" that do not teach what matters and that will make the person know how, and especially, why to use.

The question is generic, to get specific answers, you need specific questions.

 5
Author: Maniero, 2020-06-09 20:27:21