Types of testing
There are different types of testing in different contexts. In our case, we will discuss major types of automated testing. These are the different types, based on how and what we test:
- Unit testing
- Integration testing
- Functional testing
- Acceptance testing
Unit testing
In unit testing, we test different units separately. By unit, we mean very independent components. Obviously, components depend on each other we consider a very small unit. In our case that small unit is class. The class is a unit that should have a single responsibility and it should be abstract from others and depend on the minimum number of other classes or components. Anyway, we can say in unit testing, we test class by creating an object of that class irrespective of whether it fulfills the required behavior.
One important thing to understand is that during unit tests, our test shouldn't touch code other than class/code under testing. If this code is interacting with some other object or external stuff during...