Test-Driven Development
Test-Driven Development (TDD) is a proven way of developing software quickly and purposefully. It involves first writing a failing test and then writing only as much productive code as is needed to satisfy that test. If used correctly, this results in clean code that is 100% tested.
With TDD, one does not need to plan the software design ahead, but the design emerges while developing the software. If you realize that the design could be improved, you refactor the code, safe-guarded by the existing tests. This is called the red/green/refactor cycle.
In this training, you will learn about Test-Driven Development and experience directly in Ensemble Programming how to apply it and what to look out for.
Learning Objectives
- You understand the benefits of Test-Driven Development
- You can write appropriate guiding tests
- You know the Red/Green/Refactor cycle and can develop software test-driven
Target Audience
This training is aimed at participants who program PHP professionally and have always been unhappy about writing too few tests. The training is not necessarily about promoting TDD as the only true way to develop software, but about recognising the advantages of this approach and being able to switch between methodologies as needed.
Requirements
Prerequisites are practical experience with PHPUnit and knowledge of object-oriented programming in PHP. The necessary basics are taught in Advanced PHPUnit and Advanced OOP .
Test-Driven Development 792,- EUR 8 Credits
4 Online Sessions á 120 minutes
No date is currently planned for this training.
-
Introduction
Duration: 120 minutes
- The benefit of writing tests first
- Chicago or London: Inside-out or outside-in?
- Live Demo: Red, Green, Refactor in practice
-
Red
Duration: 120 minutes
- Q and A
- Getting started with a guiding test
- Ensemble Programming: How much test is needed for the next step?
-
Green
Duration: 120 minutes
- Q and A
- Ensemble Programming: Minimal solutions
- Happy Paths or Edge Cases?
-
Refactor
Duration: 120 minutes
- Q and A
- When and how should I refactor?
- Ensemble Programming: It works, now let's make it pretty!
- Feedback and Closing
Your Trainer
Sebastian Bergmann is the author of PHPUnit and sets the industry standard for quality assurance.Exclusive and customized?
We are happy to conduct any training exclusively online ("in-house") for you. We adapt the content and focus to your specific wishes and needs and optionally work with examples directly from your code base.