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
AIコーディングエージェント(Gemini)
kondai24
0
200
Rediscover the Console - SymfonyCon Amsterdam 2025
chalasr
2
160
20 years of Symfony, what's next?
fabpot
2
350
S3 VectorsとStrands Agentsを利用したAgentic RAGシステムの構築
tosuri13
6
300
著者と進める!『AIと個人開発したくなったらまずCursorで要件定義だ!』
yasunacoffee
0
120
TypeScriptで設計する 堅牢さとUXを両立した非同期ワークフローの実現
moeka__c
6
3k
Microservices rules: What good looks like
cer
PRO
0
1.1k
MAP, Jigsaw, Code Golf 振り返り会 by 関東Kaggler会|Jigsaw 15th Solution
hasibirok0
0
230
UIデザインに役立つ 2025年の最新CSS / The Latest CSS for UI Design 2025
clockmaker
18
7.2k
手が足りない!兼業データエンジニアに必要だったアーキテクチャと立ち回り
zinkosuke
0
590
sbt 2
xuwei_k
0
260
AIの誤りが許されない業務システムにおいて“信頼されるAI” を目指す / building-trusted-ai-systems
yuya4
6
2.4k
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.8k
Art, The Web, and Tiny UX
lynnandtonic
303
21k
A designer walks into a library…
pauljervisheath
210
24k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.8k
4 Signs Your Business is Dying
shpigford
186
22k
Done Done
chrislema
186
16k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.3k
Thoughts on Productivity
jonyablonski
73
5k
Designing for humans not robots
tammielis
254
26k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
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