Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
test your nodejs code
damienklinnert
September 27, 2012
Programming
5
280
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
210
angular decorate
damienklinnert
1
67
Angular Performance Talk
damienklinnert
0
55
Fight the Rot - Refactor stinky JavaScript
damienklinnert
0
130
modern web apps
damienklinnert
0
93
Become a node package maintainer
damienklinnert
1
69
bootstrap single page apps
damienklinnert
1
290
Other Decks in Programming
See All in Programming
UI State Modeling 어떤게 좋을까?
laco2951
1
220
Monadic Java
mariofusco
4
260
SRE NEXT 2022: Sensible Incident Management for Software Startups
takanabe
2
260
확장 가능한 테라폼 코드 관리 (Scalable Terraform Code Management)
posquit0
1
310
Is Rust a great language for building Kubernetes ecosystem
deepu105
0
140
JGS594 Lecture 23
javiergs
PRO
0
400
Loom is Blooming
josepaumard
3
530
アプリのログをチーム外で活用してもらうためにやったこと
shotakashihara
0
170
質とスピード(2022春版、質疑応答用資料付き) / Quality and Speed 2022 Spring Edition
twada
PRO
28
18k
microCMS × Shopifyで、ECサイトがリニューアル後急成長した話
microcms
0
460
2022 FrontEnd Training
mixi_engineers
1
160
競プロへの誘 -いざな-
u76ner
0
340
Featured
See All Featured
Statistics for Hackers
jakevdp
781
210k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
350
21k
StorybookのUI Testing Handbookを読んだ
zakiyama
4
2k
Code Reviewing Like a Champion
maltzj
506
37k
A designer walks into a library…
pauljervisheath
196
16k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
181
15k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
119
28k
How to name files
jennybc
39
58k
Mobile First: as difficult as doing things right
swwweet
212
7.5k
A Tale of Four Properties
chriscoyier
149
20k
We Have a Design System, Now What?
morganepeng
35
2.9k
The Web Native Designer (August 2011)
paulrobertlloyd
74
1.9k
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