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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Brian Hsu
August 15, 2010
Programming
320
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
230
Java XML Processing
brianhsu
0
95
Java Unicode NCR 處理
brianhsu
1
460
如何在 Java App 中導入 Scala @ JavaTWO 2011
brianhsu
1
150
[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
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
11k
Vapor Mode でアクセシビリティは 壊れないか検証した話
fuqda
1
330
Vue.jsで作る空間解析アプリとCapacitorプラグインのData Bridge
hal_spidernight
1
170
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
290
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
930
Modernizing iOS Apps
seyfoyun
0
150
AIがコードを書いてくれる時代、我々は何を確かめるのか
yosuke_furukawa
PRO
13
5.8k
Rails初心者がパスキーを実装してみて大変だったこと
ktombow
0
150
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
160
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
360
SODA - FACT BOOK(EN)
sodainc
1
220
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
3
1.4k
Featured
See All Featured
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Darren the Foodie - Storyboard
khoart
PRO
4
4.1k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.9k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
980
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.3k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.8k
How Software Deployment tools have changed in the past 20 years
geshan
3
35k
Six Lessons from altMBA
skipperchong
29
4.6k
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
600
GitHub's CSS Performance
jonrohan
1033
470k
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! 我會了,我要去吃飯了!