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
72
Angular Performance Talk
damienklinnert
0
96
Fight the Rot - Refactor stinky JavaScript
damienklinnert
0
150
modern web apps
damienklinnert
0
99
Become a node package maintainer
damienklinnert
1
79
bootstrap single page apps
damienklinnert
1
300
Other Decks in Programming
See All in Programming
オブジェクト指向コードレビューの新しいアプローチ
akkie76
3
1.5k
WasmOS: Wasmを実行する自作Microkernel
riru
0
370
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
490
Material 3で Material 2ぽい見た目にする
numeroanddev
2
250
LLMチャットボットのアプリケーション設計Tips
os1ma
4
660
15分間でふんわり理解するDocker @ Matsuriba MAX
ukwhatn
PRO
1
340
決断するための勇気、そのためのBacklog / Courage to make decisions, Backlog for that.
seike460
PRO
4
1.9k
マイ隙間家具OSSたちのご紹介
karupanerura
2
150
品質が高いコードって何?Rev2.1
ickx
1
490
Building a Smaller App Binary
kateinoigakukun
2
200
Swiftの型推論を学ぼう | Let's Learn About Type Inference in Swift
omochi
2
520
上手な探索的テストとその上達方法について
matsu802
4
650
Featured
See All Featured
Embracing the Ebb and Flow
colly
78
4.1k
Imperfection Machines: The Place of Print at Facebook
scottboms
257
12k
How STYLIGHT went responsive
nonsquared
92
4.7k
Building Adaptive Systems
keathley
29
1.8k
Being A Developer After 40
akosma
56
580k
Stop Working from a Prison Cell
hatefulcrawdad
265
19k
Web Components: a chance to create the future
zenorocha
304
41k
The Pragmatic Product Professional
lauravandoore
24
5.7k
Web development in the modern age
philhawksworth
201
10k
GraphQLとの向き合い方2022年版
quramy
28
12k
How to name files
jennybc
62
92k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
12
1.4k
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