Concepts in testing
Before we start testing our Angular applications, it's important that we quickly brush up on and understand some of the most commonly used terms in testing:
- Unit test: One can view a unit test as the smallest testable part of an application.
- Test case: This is a set of test inputs, execution conditions, and expected results for achieving an objective. In the Jasmine framework, these are referred to as specs.
- TestBed: TestBed is a method of testing a particular module in an isolated fashion by passing all the required data and objects.
- Test suite: This is a collection of test cases that are intended to be used to test a module end to end.
- System test: The tests conducted on a complete and integrated system to evaluate the system functionality.
- E2E test: It is a testing method, which determines whether the behavior of the application is as required. We pass the data, required objects, and dependencies and is performed from start to finish under mocking the real-time use cases...