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
200
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
57
Gewaltfreie Kommunikation: ein Crashkurs
oliverklee
0
170
Motivationspsychologie und Gamification in Non-Profit-Organisationen
oliverklee
0
100
Test-driven development with PHPUnit
oliverklee
0
200
Software quality for TYPO3 projects: A story of cheese, games and tools
oliverklee
0
290
TDD für Senior-Devs
oliverklee
0
80
Gamification für Arbeit in Communities
oliverklee
0
120
Software quality, cheese and games
oliverklee
0
370
Test-driven development with PHPUnit
oliverklee
0
320
Other Decks in Programming
See All in Programming
[PHPカンファレンス沖縄2024]「無理なくできるだけ安全に」テストもないレガシーコードをリファクタリングするテクニック
ikezoemakoto
3
110
フロントエンドの現在地とこれから
koba04
6
3.3k
Infrastructure as Code でセキュリティを楽にしよう!
konokenj
5
1.4k
Unlocking Python's Core Magic
leew
0
110
Flutterアプリを生成AIで生成する勘所
rizumita
0
250
モジュラモノリス、その前に / Modular monolith, before that
euglena1215
4
520
Micro Frontends for Java Microservices - dev2next 2024
mraible
PRO
0
190
クラウドサービスの 利用コストを削減する技術 - 円安の真南風を感じて -
pyama86
3
240
CSC509 Lecture 02
javiergs
PRO
0
160
Vue :: Better Testing 2024
up1
1
370
上手に付き合うコンポーネントテスト
quramy
3
1.2k
5年分のツケを一気に払った話
soogie
3
1.1k
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
249
21k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Optimizing for Happiness
mojombo
375
69k
A better future with KSS
kneath
235
17k
How to Think Like a Performance Engineer
csswizardry
16
1k
A Philosophy of Restraint
colly
202
16k
Designing for Performance
lara
604
68k
Making the Leap to Tech Lead
cromwellryan
130
8.8k
Designing with Data
zakiwarfel
98
5.1k
Fireside Chat
paigeccino
32
2.9k
A Tale of Four Properties
chriscoyier
155
22k
KATA
mclloyd
27
13k
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