gdg passo fundo - apps with unit tests (karma + jasmine + angular)

27
PASSO FUNDO - RS

Upload: matheus-marabesi

Post on 10-Feb-2017

160 views

Category:

Internet


0 download

TRANSCRIPT

Page 1: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)

PASSO FUNDO - RS

Page 2: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)
Page 3: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)
Page 4: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)
Page 5: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)
Page 6: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)

This talk is not about ...

● Why should I use apps written in HTML/JS/CSS ?

● Is hybrid apps better than platform ones ?

Page 7: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)

This talk is about ...

● TDD

● How to apply TDD to apps written in Js (Angular)

Page 8: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)
Page 9: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)
Page 10: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)
Page 11: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)
Page 12: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)

STEP1THEORY

Page 13: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)

T - TEST

D - DRIVEN

D - DEVELOPMENT

Page 14: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)
Page 15: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)

STEP2TECHNOLOGIES

Page 16: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)
Page 17: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)

● Framework for behavior-driven development

● Several features

● Easy to integrate with C.I

Jasmine

Page 18: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)

Jasmine

Page 19: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)

Karma is essentially a tool which spawns a web server

that executes source code against test code

for each of the browsers connected.

Page 20: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)
Page 21: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)
Page 22: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)
Page 23: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)

What feature would you like to have ?

Page 24: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)

WRAPPINGUP

Page 25: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)

● A lot of tests in seconds

● Many browsers support

● Refactor without fear

Page 26: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)

TDD IS NOT MAGICAL AND

DOES NOT RESOLVE ALL PROBLEMS

Page 27: GDG Passo fundo - apps with unit tests (Karma + jasmine + angular)

TAKES TIME TO GET USED TO, DON'T GIVE UP. PERSIST !