majcon at abap code_retreat_stjohann_2017_fast track tdd
TRANSCRIPT
@majcon
Fast-track Test-Driven Development
ABAPCodeRetreat St. Johann Tirol 2017
Software development is complex
Copyright Majer Consulting
hey boss everything is under control…
how is presented how the truth is
writing working software is not enough!
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:
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!
Feedback-Driven Demo
Hands on is still the best way to knowledge…
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