test first

7
Test First

Upload: deepak-gururaja

Post on 20-Feb-2017

89 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Test first

Test First

Page 2: Test first

What is this all about

A game to help us understand the benefits of reducing test cycles Teaches us good design Helps us understand continuous integration

Page 3: Test first

The Rules

Each team will be given 30 Jenga blocks, numbered 1 to 30 Each team is required to build a 3 Storied(3 floor) Structure using ALL

the blocks given to them Some of the blocks given to the teams will have defects The team is unaware of these defective blocks At the end of the iteration, teams are expected to have the ready

structure

Page 4: Test first

Iteration 1

5 Minutes Once the team has built the structure, the team is informed about the

defective block Teams need to remove the defective blocks(bugs) from the tower

Page 5: Test first

Iteration 2

5 Minutes After every 10 blocks you place, you are told about one defective

block At the end of 5 minutes, teams need to have the ready structure

Page 6: Test first

Iteration 3

5 minutes With every block the team proposes to place into the structure, the

team is informed weather or not the blocks is defective At the end of 5 minutes, teams need to have the structure ready

Page 7: Test first

Learning

Rework effort when tests are known late in the cycle Uncertainty increases with every piece of untested code goes into the

repository Right design –

The one that exposes bugs(if any) The one that does not make the structure very brittle Blocks are not tightly coupled with each other or the structure

Test First – RED-GREEN-REFACTOR