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
ScalaTest-連貓都會的單元測試與 BDD @ COSCUP 2010
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Brian Hsu
August 15, 2010
Programming
0
290
ScalaTest-連貓都會的單元測試與 BDD @ COSCUP 2010
Introduction to ScalaTest at COSCUP 2010.
Brian Hsu
August 15, 2010
Tweet
Share
More Decks by Brian Hsu
See All by Brian Hsu
我如何停止憂慮並愛上 Non-MVC Web Framework @ OSDC.tw 2013
brianhsu
6
3.3k
數位典藏聯合目錄搜尋引擎模組
brianhsu
0
160
Java XML Processing
brianhsu
0
82
Java Unicode NCR 處理
brianhsu
1
410
如何在 Java App 中導入 Scala @ JavaTWO 2011
brianhsu
1
120
[LT] 自由軟體讓你五分鐘上新聞 @ OSDC.tw 2011
brianhsu
1
98
Introduction to Scala @ TWJUG 2010/07
brianhsu
1
190
Programming Android Application in Scala @ OSDC.tw 2010
brianhsu
1
120
Other Decks in Programming
See All in Programming
AIフル活用時代だからこそ学んでおきたい働き方の心得
shinoyu
0
140
360° Signals in Angular: Signal Forms with SignalStore & Resources @ngLondon 01/2026
manfredsteyer
PRO
0
140
Apache Iceberg V3 and migration to V3
tomtanaka
0
180
MUSUBIXとは
nahisaho
0
140
24時間止められないシステムを守る-医療ITにおけるランサムウェア対策の実際
koukimiura
1
130
Vibe Coding - AI 驅動的軟體開發
mickyp100
0
180
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
470
「ブロックテーマでは再現できない」は本当か?
inc2734
0
1k
インターン生でもAuth0で認証基盤刷新が出来るのか
taku271
0
190
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
440
AWS re:Invent 2025参加 直前 Seattle-Tacoma Airport(SEA)におけるハードウェア紛失インシデントLT
tetutetu214
2
120
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6.1k
Featured
See All Featured
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
200
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
[SF Ruby Conf 2025] Rails X
palkan
1
760
Statistics for Hackers
jakevdp
799
230k
Between Models and Reality
mayunak
1
200
YesSQL, Process and Tooling at Scale
rocio
174
15k
What's in a price? How to price your products and services
michaelherold
247
13k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
400
Darren the Foodie - Storyboard
khoart
PRO
2
2.4k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
430
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
The Limits of Empathy - UXLibs8
cassininazir
1
220
Transcript
ScalaTest 連貓都會的 BDD 與單元測試 BrianHsu @ COSCUP2010 本著作係依據創用 CC Attribution-NonCommercial-ShareAlike
授權條款進行授權
ScalaTest 連貓都會的 BDD 與單元測試 BrianHsu @ COSCUP2010 本著作係依據創用 CC Attribution-NonCommercial-ShareAlike
授權條款進行授權 完全無關,講者硬要加的
關於我
墳墓 Brian Hsu http://bone.twbbs.org.tw/blog
http://digitalarchives.tw/
我不會 BDD 和單元測試 我是來洗腦的
[ 洗腦 ]
大家都知道 IE6 MUST DIE!
Java MUST DIE!! Java MUST DIE!! Java MUST DIE!!
Scala 是好物 Scala 是好物 Scala 是好物
短短的 80 行程式…… http://tinyurl.com/ScalaIRC
就知道誰在說我的壞話
就知道誰在說我的壞話 大家有什麼問題想問
[ 回題 ]
單元測試
什麼都給他測一下 用程式測試程式
Test-Driven Development
寫程式之前先寫測試
http://en.wikipedia.org/wiki/File:Test-driven_development.PNG
說到爛 這樣有好處
但……我永遠搞不懂
我根本沒程式碼 是要測什麼鬼?
Behavior-Driven Testing 說話了
測試?! 笨蛋,重點在於行為!
測試?! 笨蛋,重點在於行為!
TDD 又說
BDD 你在搞的是功能測試 ... 這不是單元測試!不要來亂!
於是就有人站出來說
爭什麼爭 摻在一起做 ScalaTest 就好了!
ScalaTest http://www.scalatest.org/
撒尿牛斥版的 Testing Framework
Scala 的世界 是一個充滿了出奇蛋的世界
三個願望一次滿足
單元測試 TDD BDD
自助餐
http://www.parleys.com/d/1552
http://www.parleys.com/d/1552
None
None
因為是連貓都會的主題 那我們就來 LiveDemo 唄!
SBT http://code.google.com/p/simple-build-tool/
Example Code http://github.com/brianhsu/ScalaTestExample
就這樣?!
就說貓都會了 你是在期待什麼? =_=
Thanks! 我會了,我要去吃飯了!