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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Sven Dahlstrand
May 11, 2011
Programming
1
140
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
68
46elks
svendahlstrand
0
160
Internet of Things
svendahlstrand
2
110
Responsiv webbdesign
svendahlstrand
1
55
Less is more
svendahlstrand
3
360
Internet of Things
svendahlstrand
1
180
Other Decks in Programming
See All in Programming
React Native × React Router v7 API通信の共通化で考えるべきこと
suguruooki
0
100
CSC307 Lecture 10
javiergs
PRO
1
660
Best-Practices-for-Cortex-Analyst-and-AI-Agent
ryotaroikeda
1
110
Package Management Learnings from Homebrew
mikemcquaid
0
230
360° Signals in Angular: Signal Forms with SignalStore & Resources @ngLondon 01/2026
manfredsteyer
PRO
0
130
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
610
AIフル活用時代だからこそ学んでおきたい働き方の心得
shinoyu
0
140
CSC307 Lecture 05
javiergs
PRO
0
500
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
200
dchart: charts from deck markup
ajstarks
3
1k
OSSとなったswift-buildで Xcodeのビルドを差し替えられるため 自分でXcodeを直せる時代になっている ダイアモンド問題編
yimajo
3
620
Claude Codeと2つの巻き戻し戦略 / Two Rewind Strategies with Claude Code
fruitriin
0
140
Featured
See All Featured
Prompt Engineering for Job Search
mfonobong
0
160
Designing Powerful Visuals for Engaging Learning
tmiket
0
240
Heart Work Chapter 1 - Part 1
lfama
PRO
5
35k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
190
Optimising Largest Contentful Paint
csswizardry
37
3.6k
The Spectacular Lies of Maps
axbom
PRO
1
530
Believing is Seeing
oripsolob
1
58
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
120
How to make the Groovebox
asonas
2
1.9k
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