Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
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
340
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
250
angular decorate
damienklinnert
1
73
Angular Performance Talk
damienklinnert
0
100
Fight the Rot - Refactor stinky JavaScript
damienklinnert
0
150
modern web apps
damienklinnert
0
100
Become a node package maintainer
damienklinnert
1
80
bootstrap single page apps
damienklinnert
1
300
Other Decks in Programming
See All in Programming
Git Lint
bkuhlmann
4
750
Kotlin Multiplatform at Stable and Beyond (Android Makers 2024)
zsmb
0
280
Behind VS Code Extensions for JavaScript / TypeScript Linnting and Formatting
unvalley
5
920
#phpcon_odawara オープン・クローズドなテストフィクスチャを求めて / open closed test fixtures
77web
3
230
AWS Application Composerで始める、 サーバーレスなデータ基盤構築 / 20240406-jawsug-hokuriku-shinkansen
kasacchiful
1
260
AWS CDKコントリビュートTIPS / aws-cdk-contribution-tips
gotok365
2
200
Site Reliability Engineering for GMO
pyama86
8
1k
デフォルトにして至高、RubyMineの大好きな所
ruzia
0
400
Tailwind CSSを本気でカスタマイズする方法
fsubal
13
5.3k
検証も兼ねて個人開発でHonoとかと向き合った話
hanetsuki
1
1.1k
初心者のためのRubyKaigi入門/RubyKaigi Introduction
a_matsuda
2
770
Azure OpenAI Serviceのプロンプトエンジニアリング入門
tomokusaba
3
710
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
60
14k
Music & Morning Musume
bryan
41
5.6k
The Straight Up "How To Draw Better" Workshop
denniskardys
227
130k
Code Review Best Practice
trishagee
55
15k
Designing Experiences People Love
moore
136
23k
Rails Girls Zürich Keynote
gr2m
91
13k
Creatively Recalculating Your Daily Design Routine
revolveconf
210
11k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
187
16k
Six Lessons from altMBA
skipperchong
21
3k
Art, The Web, and Tiny UX
lynnandtonic
289
19k
Debugging Ruby Performance
tmm1
70
11k
Code Reviewing Like a Champion
maltzj
514
39k
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