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
370
5
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
test your nodejs code
an opinionated introduction by Damien Klinnert
damienklinnert
September 27, 2012
More Decks by damienklinnert
See All by damienklinnert
Angular Performance Tuning
damienklinnert
4
280
angular decorate
damienklinnert
1
95
Angular Performance Talk
damienklinnert
0
140
Fight the Rot - Refactor stinky JavaScript
damienklinnert
0
190
modern web apps
damienklinnert
0
120
Become a node package maintainer
damienklinnert
1
100
bootstrap single page apps
damienklinnert
1
310
Other Decks in Programming
See All in Programming
170k Jobs a Day on GKE: Scaling Mercari's CI Platform - and What's Next for AI-Native Development
junyaokabe
0
120
異なる設計思想のフレームワークを経験して得た学び
amekuhideki
1
330
ここ半年くらいでAIに作らせたR用ツール
eitsupi
0
400
30年振りにコンパイラの定数整数除算を改善した
herumi
9
4.1k
React本体のコードリーディング
high_g_engineer
1
150
Discordを用いたラボオートメーション関連情報収集の自動化
noguhiro2002
0
400
仕様駆動開発へのトライを機に チームに適合する手法を模索し続けている話
freee
PRO
0
600
生成AIで帳票OCRが「簡単に」作れる時代になった?
kon_shou
0
1.2k
Oxlintはいいぞ(続)
yug1224
1
410
Gmail/Google DriveをトリガーにAIエージェントを動かそう! / Run AI agents with Gmail/Google Drive as triggers!
har1101
2
430
PostgreSQL 18で考えるUUID主キー
kazuhiro1982
0
500
仕様駆動開発の消費期限
watany
20
8.9k
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Technical Leadership for Architectural Decision Making
baasie
3
530
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
520
Testing 201, or: Great Expectations
jmmastey
46
8.2k
Abbi's Birthday
coloredviolet
3
9.4k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
The Curse of the Amulet
leimatthew05
2
14k
Building AI with AI
inesmontani
PRO
1
1.2k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
220
How to Ace a Technical Interview
jacobian
281
24k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
470
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