Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Writing PHPUnit tests for TYPO3 extensions
Search
Oliver Klee
August 04, 2023
Programming
0
150
Writing PHPUnit tests for TYPO3 extensions
Oliver Klee
August 04, 2023
Tweet
Share
More Decks by Oliver Klee
See All by Oliver Klee
Content-Synchronisierung
oliverklee
0
21
Gewaltfreie Kommunikation: ein Crashkurs
oliverklee
0
62
Motivationspsychologie und Gamification in Non-Profit-Organisationen
oliverklee
0
83
Test-driven development with PHPUnit
oliverklee
0
170
Software quality for TYPO3 projects: A story of cheese, games and tools
oliverklee
0
220
TDD für Senior-Devs
oliverklee
0
64
Gamification für Arbeit in Communities
oliverklee
0
110
Software quality, cheese and games
oliverklee
0
300
Test-driven development with PHPUnit
oliverklee
0
270
Other Decks in Programming
See All in Programming
Let's learn code review
riofujimon
2
530
コーンフレークから始める モデリング会話入門
ogurotakayuki
0
380
新宿ダンジョンを可視化してみた
satoshi7190
2
270
エンターテイメント業界で利用されるAWS
demuyan
0
210
VS Code をプロダクトにどう取り込むか
onomax
1
480
Netty Chicago Java User Group 2024-04-17
sullis
0
180
Blue/Greenデプロイの導入による 運用フローの改善
kudoas
1
390
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
110
TYPO3 v13 – The road to LTS: What's new and new APIs
luisasofie_xoxo
0
210
MetricKitで予期せぬ終了を検知する話 / Detect unexpected termination with MetricKit
nekowen
1
190
検証も兼ねて個人開発でHonoとかと向き合った話
hanetsuki
1
1.2k
Build Apps for iOS, Android & Desktop in 100% Kotlin With Compose Multiplatform (mDevCamp 2024)
zsmb
0
370
Featured
See All Featured
Scaling GitHub
holman
457
140k
Automating Front-end Workflow
addyosmani
1356
200k
Agile that works and the tools we love
rasmusluckow
325
20k
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
Become a Pro
speakerdeck
PRO
11
4.5k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
122
39k
Happy Clients
brianwarren
92
6.4k
Web development in the modern age
philhawksworth
202
10k
Building a Scalable Design System with Sketch
lauravandoore
456
32k
How to name files
jennybc
65
93k
GraphQLとの向き合い方2022年版
quramy
32
12k
The World Runs on Bad Software
bkeepers
PRO
61
6.7k
Transcript
Writing PHPUnit tests for TYPO3 extensions Oliver Klee, 2023-08
@
[email protected]
|
[email protected]
About me Oliver „Oli“ Kle e #bon n #extension-de v
#workshop-teache r #unit-testing-gu y #phpstan-gu y #best-practices-tea m #motivation-research-tea m #team-leadership-working-grou p #game-cookin g #powermetal
Unit Tests?
Manual testing is cumbersome
Automated testing is fast
Unit tests for the TYPO3 Core
Unit Tests 406 (144) tests/s
Functional Tests 8.13 (1.97) tests/s
Acceptance Tests .009 (.003) tests/s
Verify that your code does what you expect
Make sure that your changes won‘t break anything
Keep others from breaking your code
Don’t break anything even in complex projects
Create a safety net for refactoring or for TYPO3, PHP
or Symfony updates
Improve the structure of your code
Find the location of bugs
Green feels good!
Test levels http:// fi lipdefar.com/2015/06/tested-be-thy-name.html
Unit tests are small and fast
Functional tests test how components work together also called integration
tests
Acceptance tests Codeception Cypress
The testing pyramid Unit Functional/ Integration Acceptance Photo by Eugene
Tkachenko on Unsplash: https://unsplash.com/photos/TF47p5PHW18