developers on test

41

Upload: datio-big-data

Post on 22-Jan-2018

55 views

Category:

Engineering


0 download

TRANSCRIPT

Page 1: Developers on test
Page 2: Developers on test

1234

Page 3: Developers on test

1.

Page 4: Developers on test

Everyone's interest in the quality of the project is a must

Page 5: Developers on test
Page 6: Developers on test

Saves time in debugging

Page 7: Developers on test

Identify and fix bugs before production

Page 8: Developers on test

Avoid regressions

Page 9: Developers on test

Check integration between systems

Page 10: Developers on test

Analyze the source of bugs

Page 11: Developers on test

Ensuring project reliability

Page 12: Developers on test

2.

Page 13: Developers on test
Page 14: Developers on test
Page 15: Developers on test

What is it?

Tests are defined first and then coded

Page 16: Developers on test
Page 17: Developers on test

Advantages

● Minimal use of debugger● Quality from beginning● Focused on functionality

Page 18: Developers on test
Page 19: Developers on test

What is it?

From applying TDD but applying business needs

Page 20: Developers on test

How to apply it?

Same principles as TDD but executed by scenarios defined in Gherkin language

Page 21: Developers on test

3.

Page 22: Developers on test
Page 23: Developers on test

Do we need to explain?

Checks the correct functioning of a minimum code unit.

Page 24: Developers on test

Advantages

● Speed● Atomicity and independency● Code documentation● Robusted

Page 25: Developers on test
Page 26: Developers on test

Test Doubles

Replace code for the purpose of independently testing objects

Page 27: Developers on test

Doubles Test Types

- Dummy: objects created to pass them through parameters but not actually used.

Page 28: Developers on test

Doubles Test Types

- Fake: objects with functionality but with limitations in their implementation, so they are not useful for production.

Page 29: Developers on test

Doubles Test Types

- Stub: objects designed to respond to specific responses by ignoring any other behavior.

Page 30: Developers on test

Doubles Test Types

- Mock: objects preprogrammed with concrete expectations, ignoring calls that do not adapt to these.

Page 31: Developers on test

Doubles Test Types

- Spy: objects that check the calls made ignoring the parameters used.

Page 32: Developers on test

4.

Page 33: Developers on test
Page 34: Developers on test

What is it?

Check part connections with other components

Page 35: Developers on test

Advantages

● Isolated check of integration● Check expected behaviour of module● Speed

Page 36: Developers on test

Disadvantages

● Complexity● Need more resources than unit tests

Page 37: Developers on test
Page 38: Developers on test

What is it?

Check the behaviour of the project as expected by the user.

Page 39: Developers on test

Advantages

● Gherkin language● Guarantees functionality● Check expected behaviour of project

Page 40: Developers on test

Disadvantages

● Slow● Maintenance● Resources