tdd & automation

28
TDD By Elad Maimon & Automation

Upload: elad-maimon

Post on 25-Jan-2017

257 views

Category:

Software


1 download

TRANSCRIPT

Page 1: TDD & Automation

TDD

By Elad Maimon

&Automation

Page 2: TDD & Automation
Page 3: TDD & Automation

Test on production...

Page 4: TDD & Automation

Why

automated

tests ?

Page 5: TDD & Automation

It’s all about t r u s t ...

Page 6: TDD & Automation

B u t W H Y Ihave to do it ?

Page 7: TDD & Automation

o u r j o b i s N O T t o C OD Eo u r j o b i s N O T t o T E S Twe are software engineersw e S H I P s of t w a r e t ha tSOLVES problems. (Uri Nativ)

Page 8: TDD & Automation

T e s t D r i v e n Development

Page 9: TDD & Automation

TDD & BDD

Page 10: TDD & Automation
Page 11: TDD & Automation
Page 12: TDD & Automation

Who writes this ?

Page 13: TDD & Automation
Page 14: TDD & Automation
Page 15: TDD & Automation
Page 16: TDD & Automation
Page 17: TDD & Automation
Page 18: TDD & Automation
Page 19: TDD & Automation

Coverage reports

Page 20: TDD & Automation

Continuous Integration

Page 21: TDD & Automation

Push changes

Build project

Run linter Run tests Security scanner

Code review

DEPLOY *

Join trigger

* Deploy to where ? Continuous Delivery \ Continuous Deployment

Page 22: TDD & Automation
Page 23: TDD & Automation

Visible build status

Page 24: TDD & Automation

But don’t over engineer...

Page 25: TDD & Automation

Infrastructure as a code

Page 26: TDD & Automation

Infrastructure as a code

Page 27: TDD & Automation

➮ Source control for servers

➮ Container vs. VM

➮ Same provisioning code runs tests

➮ Run same server even for dev

➮ Change easily

➮ Share easily

Page 28: TDD & Automation

Enrich your environment