Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Software richtig testen - Ganz praktisch!

Software richtig testen - Ganz praktisch!

The question of how to test effectively often sparks discussion. Many of us are familiar with the test pyramid, which traditionally emphasizes unit tests due to their speed and efficiency. However, with technological advancements and lessons learned from real-world practice, the industry seems to have reached a consensus: the era of the test pyramid is behind us. The focus has shifted more toward the middle of the pyramid. In this talk, I will explain the reasons for this shift with objective insights and a live-coding demo to highlight its practical implications.

Rainer Hahnekamp

March 06, 2025
Tweet

More Decks by Rainer Hahnekamp

Other Decks in Technology

Transcript

  1. About Me... https://www.youtube.com/ @RainerHahnekamp https://www.ng-news.com https://github.com/softarc-consulting/sheriff • Rainer Hahnekamp ANGULARarchitects.io

    NgRx Team (Trusted Collaborator) • Developer / Trainer / Speaker @RainerHahnekamp Workshops NgRx • Testing • Spring • Quality
  2. RainerHahnekamp Pros & Cons Unit Tests ✅ Fast ✅ Exploratory

    ✅ Bug easy to find ✅ Encore good Design ⛔ No Refactoring ⛔ High Maintainability ⛔ Low Coverage ⛔ Low Confidence Integration Tests ✅ High Coverage ✅ Support Refactoring ✅ Lower Maintenance ✅ High Confidence ⛔ Difficult Setup ⛔ Slower than Unit Tests End-to-End ✅ Great DX ✅ Highest ROI ✅ Real Environment ✅ No Technical Challenges • CD, Async, DOM Events ⛔ Very Slow ⛔ High Coupling ⛔ Full E2E not always possible
  3. RainerHahnekamp Jeremy Elbourn: Angular Lead Angular Q&A Session September 2024

    As close to the real-world as practical. Services as Dependencies - Don't replace them - Try to come up with a fake - Last resort: Use a Mock