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
Att testa dina SiteVision-portlets
Search
Sven Dahlstrand
May 11, 2011
Programming
1
130
Att testa dina SiteVision-portlets
Kom igång med automatiska tester i dina SiteVision-portlets.
Sven Dahlstrand
May 11, 2011
Tweet
Share
More Decks by Sven Dahlstrand
See All by Sven Dahlstrand
Ett smörgåsbord av smarta verktyg
svendahlstrand
0
900
Smarta lösningar i SiteVision
svendahlstrand
0
66
46elks
svendahlstrand
0
160
Internet of Things
svendahlstrand
2
110
Responsiv webbdesign
svendahlstrand
1
54
Less is more
svendahlstrand
3
350
Internet of Things
svendahlstrand
1
180
Other Decks in Programming
See All in Programming
Deep Dive into Kotlin Flow
jmatsu
1
370
RDoc meets YARD
okuramasafumi
4
170
ファインディ株式会社におけるMCP活用とサービス開発
starfish719
0
2k
概念モデル→論理モデルで気をつけていること
sunnyone
3
300
MCPとデザインシステムに立脚したデザインと実装の融合
yukukotani
4
1.5k
個人開発で徳島大学生60%以上の心を掴んだアプリ、そして手放した話
akidon0000
1
150
Android端末で実現するオンデバイスLLM 2025
masayukisuda
1
170
Performance for Conversion! 分散トレーシングでボトルネックを 特定せよ
inetand
0
3.4k
さようなら Date。 ようこそTemporal! 3年間先行利用して得られた知見の共有
8beeeaaat
3
1.5k
Putting The Genie in the Bottle - A Crash Course on running LLMs on Android
iurysza
0
140
今だからこそ入門する Server-Sent Events (SSE)
nearme_tech
PRO
3
250
アセットのコンパイルについて
ojun9
0
130
Featured
See All Featured
Designing Experiences People Love
moore
142
24k
Context Engineering - Making Every Token Count
addyosmani
3
60
Optimising Largest Contentful Paint
csswizardry
37
3.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
36
2.5k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.7k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
113
20k
Six Lessons from altMBA
skipperchong
28
4k
Fireside Chat
paigeccino
39
3.6k
Code Reviewing Like a Champion
maltzj
525
40k
Music & Morning Musume
bryan
46
6.8k
Unsuck your backbone
ammeep
671
58k
Transcript
Att testa dina SiteVision-portlets Kom igång med automatiska tester
None
None
Exempel Booli-modul Vad och varför?
Du testar redan! Men kanske inte automatiskt?
Vad vinner du med enhetstester? Dokumentation Trygghet Färre buggar
Enhetstester • Lätt att komma igång • Testar en isolerad
del av koden • Gör koden det du förväntar dig?
public class Math { static public int add(int a, int
b) { return a + b; } } public class TestMath { @Test public void shouldAddAndReturnSum() { int sum = Math.add(2, 3); assertEquals(5, sum); } } Ett exem pel
Testdriven utveckling
Demonstration
Booli-modulen
Demonstration
Hur kommer du igång? https://github.com/svendahlstrand/sitevision-booli
• Du testar redan! • Trygghet, dokumentation, färre återkommande buggar
• Viktigast är att du testar
Sven Dahlstrand @svendahlstrand http://svendahlstrand.se