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.
Upcoming SlideShare
What to Upload to SlideShare
Next
Download to read offline and view in fullscreen.

0

Share

Download to read offline

Delhi first draft_2

Download to read offline

TDD Nightwatch Storybook

Related Books

Free with a 30 day trial from Scribd

See all
  • Be the first to like this

Delhi first draft_2

  1. 1. DEPLOYING WITH CONFIDENCE
  2. 2. HELLO! I am Vaibhav Lokhande Manager Engineering Shaadi.com
  3. 3. Arn’t we confident about our deploys?
  4. 4. We had to deal with... » Insanely long QA cycles » Solving bugs take most of the sprints » Longer development cycles » Panic of production
  5. 5. Getting confident
  6. 6. To the rescue » TDD » Storybook » Automated testing
  7. 7. The Three Laws of TDD » You may not write production code until you have written a failing test. » You may not write more of a test than is sufficient to fail. » You may not write more production code than is sufficient to pass the current failing test.
  8. 8. Three things about TDD » Writing tests in React is easy. » Test driven development (writing tests before code) is easy too. » This is an arbitrary third thing as we need to always have three things.
  9. 9. Specs for next component » Must show a button “Upgrade now” if user is free » Must show a button “Extend membership” is user is paid » Should Not render a blank button
  10. 10. Remember this?
  11. 11. Writing failing test
  12. 12. The red....
  13. 13. Writing code to pass test....
  14. 14. Passing the test
  15. 15. Failing test for next spec
  16. 16. The red...
  17. 17. Adding code to pass test...
  18. 18. Test passed
  19. 19. Failing test for next spec
  20. 20. The red...
  21. 21. Adding code to pass test...
  22. 22. Code complete....
  23. 23. Testing in ReactJS » Enzyme » Mocha » Chai » Jest » Jasmine
  24. 24. » A component library » Test and Develop » Documentation » Product Review
  25. 25. Story book : Experiment A »
  26. 26. Story book : Experiment B »
  27. 27. Story book : With Knobs »
  28. 28. Automation testing » Nightwatch » Cypress » Selenium
  29. 29. Automated testing with nightwatch
  30. 30. Automated testing : Fail case
  31. 31. Automated testing : Passed case
  32. 32. < »
  33. 33. THANKS! Any questions? You can find me at » @vaibhav7779 » vaibhav@vaibhav.io

TDD Nightwatch Storybook

Views

Total views

268

On Slideshare

0

From embeds

0

Number of embeds

119

Actions

Downloads

1

Shares

0

Comments

0

Likes

0

×