Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Att testa dina SiteVision-portlets
Search
Sven Dahlstrand
May 11, 2011
Programming
150
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Att testa dina SiteVision-portlets
Kom igång med automatiska tester i dina SiteVision-portlets.
Sven Dahlstrand
May 11, 2011
Transcript
15 slides
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
More Decks by Sven Dahlstrand
See All by Sven Dahlstrand
Ett smörgåsbord av smarta verktyg
svendahlstrand
0
910
Smarta lösningar i SiteVision
svendahlstrand
0
72
46elks
svendahlstrand
0
170
Internet of Things
svendahlstrand
2
120
Responsiv webbdesign
svendahlstrand
1
60
Less is more
svendahlstrand
3
380
Internet of Things
svendahlstrand
1
190
Other Decks in Programming
See All in Programming
はじめてのKubernetesコントリビューション
nasa9084
0
320
仕様駆動開発入門 (何を作るかを先に決めて渡す) | 目指せ Kiro マスター 05
inariku
PRO
3
220
SODA - FACT BOOK(JP)
sodainc
1
40k
Spec-Driven Development - Why Vaadin Is the Perfect Fit
simas
PRO
0
260
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
330
[Kotlin Fest 2026] eBPF Tracing for Kotlin
takehaya
1
400
小さなアプリを作って公開するまで
onozaty
0
240
なぜ私たちは「現時点では」KMPの導入を見送ったのか
chigichan24
1
630
LLM 101
dalinaum
0
540
Ruby から Emacs を操作したい
phigasui
0
390
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
270
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
800
Featured
See All Featured
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.3k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
700
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
640
A better future with KSS
kneath
240
18k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
580
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Designing for humans not robots
tammielis
254
26k
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
290
How to make the Groovebox
asonas
2
2.6k