test your nodejs code                     an opinionated introduction by Damien Klinnert                                  ...
whois damienklinnert                           student of computer science                           works at doctape     ...
unit tests???                                 3Freitag, 23. November 12
what is it?                                4Freitag, 23. November 12
advantages of unit tests                           JS is a dynamic language                           additional lines of ...
test your nodejs code                                     6Freitag, 23. November 12
tools                           mocha            couchviews                           should           couchpenter        ...
tools/mocha                           feature-rich              only a few keywords                           JavaScript t...
tools/should                           expressive, readable,                           test framework                     ...
tools/npm                           npm comes with                           script support                           no n...
demo time                               11Freitag, 23. November 12
tools/couchviews                           Store and load CouchDB views to / from                           your file syste...
tools/couchpenter                           CouchDB database                           and document setup                 ...
tools/nock                           HTTP HTTP mocking library                           create api test environments     ...
tools/travis-ci                           A hosted continuous integration service for                           the open s...
reading                           http://visionmedia.github.com/mocha/                           https://github.com/vision...
thank you                               17Freitag, 23. November 12
Upcoming SlideShare
Loading in...5
×

Test your nodejs code

597

Published on

an opinionated introduction by Damien Klinnert

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
597
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Test your nodejs code

  1. 1. test your nodejs code an opinionated introduction by Damien Klinnert 1Freitag, 23. November 12
  2. 2. whois damienklinnert student of computer science works at doctape jsdev since beginning of 2012 follow me @damienklinnert 2Freitag, 23. November 12
  3. 3. unit tests??? 3Freitag, 23. November 12
  4. 4. what is it? 4Freitag, 23. November 12
  5. 5. 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 5Freitag, 23. November 12
  6. 6. test your nodejs code 6Freitag, 23. November 12
  7. 7. tools mocha couchviews should couchpenter npm nock travis-ci 7Freitag, 23. November 12
  8. 8. tools/mocha feature-rich only a few keywords JavaScript test to remember like: framework describe(), it(), many different test before(), after(), outputs beforeEach(), afterEach() can create documentation 8Freitag, 23. November 12
  9. 9. tools/should expressive, readable, test framework agnostic, assertion library extends the Object prototype should … exist, have.keys, equal, throwError() 9Freitag, 23. November 12
  10. 10. tools/npm npm comes with script support no need for makefiles for common tasks like "run all tests" or "generate docs" 10Freitag, 23. November 12
  11. 11. demo time 11Freitag, 23. November 12
  12. 12. tools/couchviews Store and load CouchDB views to / from your file system for easier setup of new databases 12Freitag, 23. November 12
  13. 13. tools/couchpenter CouchDB database and document setup tool CLI to setup new couchdb‘s from a json file 13Freitag, 23. November 12
  14. 14. tools/nock HTTP HTTP mocking library create api test environments 14Freitag, 23. November 12
  15. 15. tools/travis-ci A hosted continuous integration service for the open source community. 15Freitag, 23. November 12
  16. 16. 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/ 16Freitag, 23. November 12
  17. 17. thank you 17Freitag, 23. November 12
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×