1
2
3
4
1.
Everyone's interest in the quality of the project
is a must
Saves time in debugging
Identify and fix bugs before production
Avoid regressions
Check integration between systems
Analyze the source of bugs
Ensuring project reliability
2.
What is it?
Tests are defined first and then coded
Advantages
● Minimal use of debugger
● Quality from beginning
● Focused on functionality
What is it?
From applying TDD but applying business needs
How to apply it?
Same principles as TDD but executed by scenarios defined in
Gherkin language
3.
Do we need to explain?
Checks the correct functioning of a minimum code unit.
Advantages
● Speed
● Atomicity and independency
● Code documentation
● Robusted
Test Doubles
Replace code for the purpose of independently testing objects
Doubles Test Types
- Dummy: objects created
to pass them through
parameters but not
actually used.
Doubles Test Types
- Fake: objects with
functionality but with
limitations in their
implementation, so
they are not useful for
production.
Doubles Test Types
- Stub: objects designed
to respond to specific
responses by ignoring
any other behavior.
Doubles Test Types
- Mock: objects
preprogrammed with
concrete expectations,
ignoring calls that do not
adapt to these.
Doubles Test Types
- Spy: objects that check the
calls made ignoring the
parameters used.
4.
What is it?
Check part connections with other components
Advantages
● Isolated check of integration
● Check expected behaviour of module
● Speed
Disadvantages
● Complexity
● Need more resources than unit tests
What is it?
Check the behaviour of the project as expected by the user.
Advantages
● Gherkin language
● Guarantees functionality
● Check expected behaviour of project
Disadvantages
● Slow
● Maintenance
● Resources
Developers on test

Developers on test