Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Test Driven Development
in Node.js apps
TechTalk
by Ihor Yamshchykov
• “Unit tests” test individual units of code in isolation (for instance, individual
functions). They are fast and you usua...
TDD Benefits
• Application stability
• Easy refactoring
• Easy improvements
• Reusable code
• Safe production
TDD Drawbacks
• Development speed delay
• Bad test implementation
• May require additional resources
When writing tests ?
• Keep simple
• Single responsibility
• Separate by logic
• Make test fast
• Test more
Demo
Test Driven Development in Node.js apps
Upcoming SlideShare
Loading in …5
×

Test Driven Development in Node.js apps

234 views

Published on

A TechTalk presentation of Node.js Ninja Ihor Yamshchykov about TDD in Node.js apps.
Check out more info about this TechTalk here: http://blog.techmagic.co/techtalk-test-driven-development-in-node-js-apps/

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Test Driven Development in Node.js apps

  1. 1. Test Driven Development in Node.js apps TechTalk by Ihor Yamshchykov
  2. 2. • “Unit tests” test individual units of code in isolation (for instance, individual functions). They are fast and you usually have a lot of them. • “Integration tests” test the integrations between different units, for example the interaction between one module and its dependencies. • “E2E (or end-to-end) tests” test the system as a whole, from the UI down to the data store, and back.
  3. 3. TDD Benefits • Application stability • Easy refactoring • Easy improvements • Reusable code • Safe production
  4. 4. TDD Drawbacks • Development speed delay • Bad test implementation • May require additional resources
  5. 5. When writing tests ? • Keep simple • Single responsibility • Separate by logic • Make test fast • Test more
  6. 6. Demo

×