majcon at abap code_retreat_stjohann_2017_fast track tdd

9
@majcon Fast-track Test-Driven Development ABAPCodeRetreat St. Johann Tirol 2017

Upload: damir-majer

Post on 29-Jan-2018

261 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Majcon at abap code_retreat_stjohann_2017_fast track tdd

@majcon

Fast-track Test-Driven Development

ABAPCodeRetreat St. Johann Tirol 2017

Page 2: Majcon at abap code_retreat_stjohann_2017_fast track tdd

Software development is complex

Page 3: Majcon at abap code_retreat_stjohann_2017_fast track tdd

Copyright Majer Consulting

hey boss everything is under control…

how is presented how the truth is

Page 4: Majcon at abap code_retreat_stjohann_2017_fast track tdd

writing working software is not enough!

Page 5: Majcon at abap code_retreat_stjohann_2017_fast track tdd

Test-Driven Development

“is a software development process that relies on the repetition of a very short development cycle: requirements are turned into very specific test cases, then the software is improved to pass the new tests, only. This is opposed to software development that allows software to be added that is not proven to meet requirements.

…TDD encourages simple designs and inspires confidence.

Test-driven development is related to the test-first programming concepts of extreme programming, begun in 1999,

but more recently has created more general interest in its own right.”

WIKIPEDIA:

Page 6: Majcon at abap code_retreat_stjohann_2017_fast track tdd

Feedback-Driven

• write a test • make it fail • keep it simple • tests are examples • tests becomes

documentation

abapcoderetreat.events ACR

RED GREEN

REFACTOR

• get to green fast • take baby steps • stuck? undo and start

over • write only enough code

to pass the test

• remove duplication (in code and tests)

• rename and clean up • run tests and stay green • change implementation

not behaviour • improve structure in

small steps

you start here!

Test Driven Development Cycle

THINK!

Page 7: Majcon at abap code_retreat_stjohann_2017_fast track tdd

Feedback-Driven Demo

Page 8: Majcon at abap code_retreat_stjohann_2017_fast track tdd

Hands on is still the best way to knowledge…

Page 9: Majcon at abap code_retreat_stjohann_2017_fast track tdd

Damir Majer Majer Consulting > Agile Solution Management @majcon [email protected]

Unit-Tests mit ABAP® Unit dpunkt.verlag

Besseres ABAP Schnell, sicher, robust SAP Press

CodeKata ABAP Collaboration Project www.codekata.io

New Services: Online Coaching / Advisory Get in contact and send me an email