Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
test your nodejs code
Search
damienklinnert
September 27, 2012
Programming
5
360
test your nodejs code
an opinionated introduction by Damien Klinnert
damienklinnert
September 27, 2012
Tweet
Share
More Decks by damienklinnert
See All by damienklinnert
Angular Performance Tuning
damienklinnert
4
270
angular decorate
damienklinnert
1
83
Angular Performance Talk
damienklinnert
0
130
Fight the Rot - Refactor stinky JavaScript
damienklinnert
0
170
modern web apps
damienklinnert
0
120
Become a node package maintainer
damienklinnert
1
90
bootstrap single page apps
damienklinnert
1
310
Other Decks in Programming
See All in Programming
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
140
認証・認可の基本を学ぼう前編
kouyuume
0
190
著者と進める!『AIと個人開発したくなったらまずCursorで要件定義だ!』
yasunacoffee
0
120
Cap'n Webについて
yusukebe
0
130
從冷知識到漏洞,你不懂的 Web,駭客懂 - Huli @ WebConf Taiwan 2025
aszx87410
1
1.4k
dnx で実行できるコマンド、作ってみました
tomohisa
0
140
ZOZOにおけるAI活用の現在 ~モバイルアプリ開発でのAI活用状況と事例~
zozotech
PRO
8
5.5k
配送計画の均等化機能を提供する取り組みについて(⽩⾦鉱業 Meetup Vol.21@六本⽊(数理最適化編))
izu_nori
0
150
SwiftUIで本格音ゲー実装してみた
hypebeans
0
110
AtCoder Conference 2025「LLM時代のAHC」
imjk
1
200
Building AI Agents with TypeScript #TSKaigiHokuriku
izumin5210
6
1.3k
生成AIを利用するだけでなく、投資できる組織へ
pospome
0
240
Featured
See All Featured
Building Adaptive Systems
keathley
44
2.9k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.7k
Rails Girls Zürich Keynote
gr2m
95
14k
Agile that works and the tools we love
rasmusluckow
331
21k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.8k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
36
6.2k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.4k
Raft: Consensus for Rubyists
vanstee
141
7.2k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
The Cult of Friendly URLs
andyhume
79
6.7k
Embracing the Ebb and Flow
colly
88
4.9k
Transcript
test your nodejs code an opinionated introduction by Damien Klinnert
1 Donnerstag, 27. September 12
whois damienklinnert student of computer science works at doctape jsdev
since beginning of 2012 follow me @damienklinnert 2 Donnerstag, 27. September 12
unit tests??? 3 Donnerstag, 27. September 12
what is it? 4 Donnerstag, 27. September 12
advantages of unit tests JS is a dynamic language additional
lines of code, but less errors continous integration -> less errors over time NOT THE ANSWER TO EVERYTHING 5 Donnerstag, 27. September 12
test your nodejs code 6 Donnerstag, 27. September 12
tools mocha should npm couchviews couchpenter nock travis-ci 7 Donnerstag,
27. September 12
tools/mocha feature-rich JavaScript test framework many different test outputs can
create documentation only a few keywords to remember like: describe(), it(), before(), after(), beforeEach(), afterEach() 8 Donnerstag, 27. September 12
tools/should expressive, readable, test framework agnostic, assertion library extends the
Object prototype should … exist, have.keys, equal, throwError() 9 Donnerstag, 27. September 12
tools/npm npm comes with script support no need for makefiles
for common tasks like "run all tests" or "generate docs" 10 Donnerstag, 27. September 12
demo time 11 Donnerstag, 27. September 12
tools/couchviews Store and load CouchDB views to / from your
file system for easier setup of new databases 12 Donnerstag, 27. September 12
tools/couchpenter CouchDB database and document setup tool CLI to setup
new couchdb‘s from a json file 13 Donnerstag, 27. September 12
tools/nock HTTP HTTP mocking library create api test environments 14
Donnerstag, 27. September 12
tools/travis-ci A hosted continuous integration service for the open source
community. 15 Donnerstag, 27. September 12
reading http:/ /visionmedia.github.com/mocha/ https:/ /github.com/visionmedia/should.js/ https:/ /npmjs.org/doc/ https:/ /github.com/damienklinnert/couchviews https:/
/github.com/cliffano/couchpenter https:/ /github.com/flatiron/nock http:/ /travis-ci.org/ 16 Donnerstag, 27. September 12
thank you 17 Donnerstag, 27. September 12