Transcript
Page 1: Where to test first?

W H E R E T O T E S T F I R S T

YA R O S L AV S E R H I E I E V, F R O N T- E N D D E V E L O P E R

Page 2: Where to test first?

D O N ’ T S TA R T F R O M U N I T T E S T S *

* I N M O S T C A S E S@noomorph

Page 3: Where to test first?

TESTS

@noomorph

Page 4: Where to test first?

CODETESTS

@noomorph

Page 5: Where to test first?

CODETESTS

TESTS@noomorph

Page 6: Where to test first?

CODETESTS

TESTS CODE

Page 7: Where to test first?

U N I T T E S T S F O R P U D D L E

@noomorph

Page 8: Where to test first?

D E S C R I B E ( “ЛУЖА ” , СОСТОИТ ИЗ ВОДЫ

@noomorph

Page 9: Where to test first?

D E S C R I B E ( “ЛУЖА ” , ЭТО НЕБОЛЬШОЕ УГЛУБЛЕНИЕ

@noomorph

Page 10: Where to test first?

ПРИ ВСТУПАНИИ В НЕЕ

@noomorph

Page 11: Where to test first?

СОЗДАЕТ БРЫЗГИ

@noomorph

Page 12: Where to test first?

МОЖНО ПРОМОЧИТЬ НОГИ

@noomorph

Page 13: Where to test first?

PA S S I N G U N I T T E S T S

Page 14: Where to test first?

C O D E O N M A N U A L Q A

Page 15: Where to test first?

G A P B E T W E E N C O D E & P R O D U C T

Page 16: Where to test first?

C O O K T D D R I G H T: S TA R T F R O M “ B I G G E R ”

@noomorph

Page 17: Where to test first?

S TA R T F R O M “ B I R D V I E W ”

Page 18: Where to test first?

U N I T T E S T S A R E M O R E F R A G I L E

Requirements

Architecture

Classes

Unit Tests

@noomorph

Page 19: Where to test first?

E 2 E PA S S I N G = J E N G A S TA N D S

Page 20: Where to test first?

L E T E 2 E T O T E S T P U D D L E S

Page 21: Where to test first?

… B U T U N I T T E S T S A R E I M P O R TA N T T O O

Page 22: Where to test first?

… B U T U N I T T E S T S A R E I M P O R TA N T T O O

code with unit tests

Page 23: Where to test first?

… B U T U N I T T E S T S A R E I M P O R TA N T T O O

code without unit testscode with unit tests

Page 24: Where to test first?

E 2 E S TA R T S I N B R O W S E R C O N S O L E

@noomorph

Page 25: Where to test first?

J S T E S T S J S

Page 26: Where to test first?

M O C H A B O O K M A R K L E Thttps://github.com/noomorph/mocha-­‐bookmarklet

• loads  Mocha/Chai  scripts  • creates  output  container  for  the  results  • prompts  for  your  spec  URL  or  raw  code  to  paste  and  run

Page 27: Where to test first?

@noomorph

T H A N K S F O R AT T E N T I O N


Top Related