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
300
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.3k
數位典藏聯合目錄搜尋引擎模組
brianhsu
0
200
Java XML Processing
brianhsu
0
92
Java Unicode NCR 處理
brianhsu
1
440
如何在 Java App 中導入 Scala @ JavaTWO 2011
brianhsu
1
130
[LT] 自由軟體讓你五分鐘上新聞 @ OSDC.tw 2011
brianhsu
1
110
Introduction to Scala @ TWJUG 2010/07
brianhsu
1
200
Programming Android Application in Scala @ OSDC.tw 2010
brianhsu
1
130
Other Decks in Programming
See All in Programming
AgentCore CLI で進化した AWS での AI エージェントの作り方 : 必要な機能を必要な時に
icoxfog417
PRO
2
250
AI に Inclusive UI を書かせよう — Design Rules Skill で Compose UI を作り直す
theoriatec2024
1
460
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
4
3.8k
AWS DevOps Agentで インシデント対応をAIに任せたい
honmarkhunt
7
2.6k
スマート反転とウェブアクセシビリティ
camiha
0
170
XP祭りでしか伝わらないフリップネタ #xpjug
murabayashi
0
120
tsc.rip を支える技術 / Kyoto.なんか #8
susisu
0
4.4k
iOS開発×AI駆動開発 〜最近使って便利だったスキルの話〜
nogu66
0
140
typoなんかねぇよ
raspython3
0
680
Snowflakeで業務アプリを作ろう。 Snowflakeのアプリ機能解説&実践ガイド
ayumu_yamaguchi
1
200
PyO3 で既存 Python 評価器を Rust core 化する ー wasm-bindgen でブラウザにも配るための設計
kdash
1
560
Hello, Hiroshima Geospatial Data! — Exploring DoboX with Python
ra0kley
0
180
Featured
See All Featured
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.2k
Being A Developer After 40
akosma
91
590k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
Test your architecture with Archunit
thirion
2
2.4k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Amusing Abliteration
ianozsvald
1
290
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.2k
Visualization
eitanlees
152
17k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.5k
The SEO identity crisis: Don't let AI make you average
varn
0
550
Thoughts on Productivity
jonyablonski
76
5.4k
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! 我會了,我要去吃飯了!