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
Brian Hsu
August 15, 2010
Programming
0
260
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
150
Java XML Processing
brianhsu
0
79
Java Unicode NCR 處理
brianhsu
1
390
如何在 Java App 中導入 Scala @ JavaTWO 2011
brianhsu
1
110
[LT] 自由軟體讓你五分鐘上新聞 @ OSDC.tw 2011
brianhsu
1
93
Introduction to Scala @ TWJUG 2010/07
brianhsu
1
180
Programming Android Application in Scala @ OSDC.tw 2010
brianhsu
1
110
Other Decks in Programming
See All in Programming
Flutterと Vibe Coding で個人開発!
hyshu
1
250
AHC051解法紹介
eijirou
0
600
KessokuでDIでもgoroutineを活用する / Go Connect #6
mazrean
0
100
あのころの iPod を どうにか再生させたい
orumin
2
2.5k
The state patternの実践 個人開発で培ったpractice集
miyanokomiya
0
130
コンテキストエンジニアリング Cursor編
kinopeee
1
590
Scale out your Claude Code ~自社専用Agentで10xする開発プロセス~
yukukotani
9
2.3k
TROCCO×dbtで実現する人にもAIにもやさしいデータ基盤
nealle
0
280
エンジニアのための”最低限いい感じ”デザイン入門
shunshobon
0
120
LLMは麻雀を知らなすぎるから俺が教育してやる
po3rin
3
2.2k
Vibe coding コードレビュー
kinopeee
0
450
Claude Codeで実装以外の開発フロー、どこまで自動化できるか?失敗と成功
ndadayo
2
330
Featured
See All Featured
Fireside Chat
paigeccino
39
3.6k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Optimizing for Happiness
mojombo
379
70k
The Power of CSS Pseudo Elements
geoffreycrofte
77
5.9k
A Tale of Four Properties
chriscoyier
160
23k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
131
19k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
Code Review Best Practice
trishagee
69
19k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
Bash Introduction
62gerente
614
210k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.4k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
161
15k
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! 我會了,我要去吃飯了!