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
360
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
79
Angular Performance Talk
damienklinnert
0
120
Fight the Rot - Refactor stinky JavaScript
damienklinnert
0
170
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
HTMLの品質ってなんだっけ? “HTMLクライテリア”の設計と実践
unachang113
4
2.9k
Testing Trophyは叫ばない
toms74209200
0
890
go test -json そして testing.T.Attr / Kyoto.go #63
utgwkk
3
310
print("Hello, World")
eddie
2
530
AIを活用し、今後に備えるための技術知識 / Basic Knowledge to Utilize AI
kishida
22
5.9k
楽して成果を出すためのセルフリソース管理
clipnote
0
180
プロパティベーステストによるUIテスト: LLMによるプロパティ定義生成でエッジケースを捉える
tetta_pdnt
0
3.3k
「待たせ上手」なスケルトンスクリーン、 そのUXの裏側
teamlab
PRO
0
560
アセットのコンパイルについて
ojun9
0
130
Introducing ReActionView: A new ActionView-compatible ERB Engine @ Rails World 2025, Amsterdam
marcoroth
0
710
はじめてのMaterial3 Expressive
ym223
2
890
1から理解するWeb Push
dora1998
7
1.9k
Featured
See All Featured
Testing 201, or: Great Expectations
jmmastey
45
7.7k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
61k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.6k
Bash Introduction
62gerente
615
210k
A designer walks into a library…
pauljervisheath
207
24k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
We Have a Design System, Now What?
morganepeng
53
7.8k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
127
53k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
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