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
ScalaTest-連貓都會的單元測試與 BDD @ COSCUP 2010
Search
Brian Hsu
August 15, 2010
Programming
310
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ScalaTest-連貓都會的單元測試與 BDD @ COSCUP 2010
Introduction to ScalaTest at COSCUP 2010.
Brian Hsu
August 15, 2010
More Decks by Brian Hsu
See All by Brian Hsu
我如何停止憂慮並愛上 Non-MVC Web Framework @ OSDC.tw 2013
brianhsu
6
3.4k
數位典藏聯合目錄搜尋引擎模組
brianhsu
0
220
Java XML Processing
brianhsu
0
92
Java Unicode NCR 處理
brianhsu
1
450
如何在 Java App 中導入 Scala @ JavaTWO 2011
brianhsu
1
140
[LT] 自由軟體讓你五分鐘上新聞 @ OSDC.tw 2011
brianhsu
1
120
Introduction to Scala @ TWJUG 2010/07
brianhsu
1
200
Programming Android Application in Scala @ OSDC.tw 2010
brianhsu
1
140
Other Decks in Programming
See All in Programming
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
3
1.1k
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
280
自作Discord音声botをLambda MicroVMsに移行した話 / Migrating My Discord Voice Bot to Lambda MicroVMs
akihisaikeda
0
150
Python Lambdaにおけるテストしやすい設計とAI支援の活用 / Designing Testable Python Lambda Functions with AI
kitano_yuichi
1
110
AI時代のTerminal環境を UNIX哲学で設計・運用する
yasunori0418
1
210
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
1
200
GraphQL の onError と Nullability のこれから
quramy
0
180
[Dev Group Paris Octobre 26] Agentforce, SIforce, Claudeforce, Slackbot… on s'y retrouve ?
nabondance
0
120
残高管理から台帳サービスへの進化
artoy
1
210
Kotlinize Is Not Just Converting to Kotlin
chigichan24
1
190
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
480
PyConTW 2026 - AI Coding 不只是工具升級, 區域醫院醫療資訊系統協作開發與資訊團隊轉型實踐
cclai999
0
160
Featured
See All Featured
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
460
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
380
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
Ethics towards AI in product and experience design
skipperchong
2
440
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
New Earth Scene 8
popppiees
4
2.7k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
A Soul's Torment
seathinner
8
3.8k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
640
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
880
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
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! 我會了,我要去吃飯了!