Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

ABAPCodeRetreat - TDD Intro by Damir Majer

697 Aufrufe

Veröffentlicht am

ABAP CodeRetreat in de Meern 21st January 2017 presented by @majcon

Veröffentlicht in: Software
  • Login to see the comments

  • Gehören Sie zu den Ersten, denen das gefällt!

ABAPCodeRetreat - TDD Intro by Damir Majer

  1. 1. @majcon Test-Driven Development ABAPCodeRetreat de Meern 2017
  2. 2. 2 Damir Majer Developer, Dev Coach and Trainer @majcon Unit-Tests mit ABAP® Unit dpunkt.verlag Besseres ABAP Schnell, sicher, robust SAP Press CodeKata ABAP Collaboration Project www.codekata.io
  3. 3. Software development is complex
  4. 4. Copyright Majer Consulting hey boss everything is under control… how is presented how the truth is
  5. 5. Systematic testing 5 Testing techniques Ad-hoc testingError guessing Boundary value analysis Path coverage testing Intuitive testing Semantic testing Control flow testing Business process testing Branch coverage testing State transition analysis Condition coverage testing Cause-effect analysis Dataflow testing Classification tree method Compiler testing Testing in pairs Elementary comparison test Weak point testing Area analysis testing Equivalence class partitioning analysis Testing with a random value Syntax testing Statement coverage testing
  6. 6. How to achieve testing during the implementation phase?
  7. 7. Unit vs. integration testing 7 Integration testing Unit testing
  8. 8. Unit-Testing “unit testing is a software testing method by which individual units of source code, sets of one or more computer program modules together with associated control data, usage procedures, and operating procedures, are tested to determine whether they are fit for use WIKIPEDIA:
  9. 9. 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:
  10. 10. 11and now?
  11. 11. Execution of ABAP Unit-Tests SAP GUI or ABAP in Eclipse: CTRL+SHIFT+F10 ABAP Unit on a Postcard
  12. 12. plan actualvs. ABAP Unit Assertion-Methods
  13. 13. Test Driven Development • 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!
  14. 14. What is your experience?
  15. 15. one more thing… ABAP Trainings with focus on ABAP Unit and TDD WDE401 WDAGIL BC401 TDD with ABAP cATDD
  16. 16. Hands on…

×