Your SlideShare is downloading. ×
Test your nodejs code
Test your nodejs code
Test your nodejs code
Test your nodejs code
Test your nodejs code
Test your nodejs code
Test your nodejs code
Test your nodejs code
Test your nodejs code
Test your nodejs code
Test your nodejs code
Test your nodejs code
Test your nodejs code
Test your nodejs code
Test your nodejs code
Test your nodejs code
Test your nodejs code
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Test your nodejs code

558

Published on

an opinionated introduction by Damien Klinnert

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
558
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. test your nodejs code an opinionated introduction by Damien Klinnert 1Freitag, 23. November 12
  • 2. whois damienklinnert student of computer science works at doctape jsdev since beginning of 2012 follow me @damienklinnert 2Freitag, 23. November 12
  • 3. unit tests??? 3Freitag, 23. November 12
  • 4. what is it? 4Freitag, 23. November 12
  • 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. test your nodejs code 6Freitag, 23. November 12
  • 7. tools mocha couchviews should couchpenter npm nock travis-ci 7Freitag, 23. November 12
  • 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. tools/should expressive, readable, test framework agnostic, assertion library extends the Object prototype should … exist, have.keys, equal, throwError() 9Freitag, 23. November 12
  • 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. demo time 11Freitag, 23. November 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. tools/couchpenter CouchDB database and document setup tool CLI to setup new couchdb‘s from a json file 13Freitag, 23. November 12
  • 14. tools/nock HTTP HTTP mocking library create api test environments 14Freitag, 23. November 12
  • 15. tools/travis-ci A hosted continuous integration service for the open source community. 15Freitag, 23. November 12
  • 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. thank you 17Freitag, 23. November 12

×