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
350
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
78
Angular Performance Talk
damienklinnert
0
120
Fight the Rot - Refactor stinky JavaScript
damienklinnert
0
160
modern web apps
damienklinnert
0
120
Become a node package maintainer
damienklinnert
1
88
bootstrap single page apps
damienklinnert
1
300
Other Decks in Programming
See All in Programming
Bedrock×MCPで社内ブログ執筆文化を育てたい!
har1101
6
1k
Unlock the Potential of Swift Code Generation
rockname
0
260
サービスレベルを管理してアジャイルを加速しよう!! / slm-accelerate-agility
tomoyakitaura
1
190
note の Elasticsearch 更新系を支える技術
tchov
0
110
地域ITコミュニティの活性化とAWSに移行してみた話
yuukis
0
240
監視 やばい
syossan27
11
9.8k
RubyKaigi Dev Meeting 2025
tenderlove
1
220
ComposeでWebアプリを作る技術
tbsten
0
120
エンジニアが挑む、限界までの越境
nealle
1
260
「理解」を重視したAI活用開発
fast_doctor
0
150
Dissecting and Reconstructing Ruby Syntactic Structures
ydah
1
770
PHPで書いたAPIをGoに書き換えてみた 〜パフォーマンス改善の可能性を探る実験レポート〜
koguuum
0
170
Featured
See All Featured
Building Applications with DynamoDB
mza
94
6.3k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
52
2.4k
BBQ
matthewcrist
88
9.6k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.8k
The Cost Of JavaScript in 2023
addyosmani
49
7.7k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Agile that works and the tools we love
rasmusluckow
328
21k
A Modern Web Designer's Workflow
chriscoyier
693
190k
RailsConf 2023
tenderlove
30
1.1k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
5
560
Automating Front-end Workflow
addyosmani
1369
200k
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