- What are the major differences between Integrated testing against Isolated testing ?
- When are these used?
Asked
Active
Viewed 293 times
0

Aravind
- 40,391
- 16
- 91
- 110
1 Answers
3
Integrated Testing
- Involves more efforts for
- Setting up the component to test (using TestBed)
- Check which are the child components and custom components
- Configure the properties and methods in those child (or) custom components, which throws error if failed
- Even for a simple scenario
involves more time
as each and every property or their bindings has to be tested separately. This increases either of the below- number of
it
blocks - number of
expect
statements in a singleit
block
- number of
- Attracts or
tempts
towrite more test cases
as reason is in the second bullet - No
Pipes
orServices
are tested.
Isolated Testing
- No configuration is needed to test (including components)
Handles logic which has low complexity
there by testing only the parent component and not worried about the child components.- For complex properties and bindings can be easily tested because the entire object can be passed into an
expect
statement which reduces the number of test cases unlike above. - Mainly used for unit testing the
Pipes
andServices
as their functionality is completely independent

Aravind
- 40,391
- 16
- 91
- 110