Upgrade to Pro — share decks privately, control downloads, hide ads and more …

React Native Integration Testing

React Native Integration Testing

React Native brings a whole new set of techniques that makes mobile development more like web development. One critical piece to the puzzle is how to test your application. We know that great tests build confidence in the code and result in better applications that are easier to maintain, but the native environment brings its own set of challenges. In this talk, I’ll go through what has worked for us with regards to unit, component, and integration testing and how this sets us up for an effective development experience.

Brian Leonard

January 14, 2016
Tweet

More Decks by Brian Leonard

Other Decks in Technology

Transcript

  1. Test (mocha) Server (koa) Simulator (appium) What url to show

    and ac(ons to perform Test starts Setup
  2. Test (mocha) Server (koa) Simulator (appium) Click ResetTest buNon Delete

    local files What should I do? What the test said earlier Bootstrap Set up! Test starts
  3. Test (mocha) Server (koa) Simulator (appium) Click Add Post Finds

    and clicks buNon Tes(ng Done! Running Test
  4. Test (mocha) Server (koa) Simulator (appium) Screen say “New Post”

    Looks for text Tes(ng It’s there! Running Test
  5. Test (mocha) Server (koa) Simulator (appium) Fill in text and

    Submit Does it Create post via API Return with stubbed response Tes(ng Posted! Running test
  6. Test (mocha) Server (koa) Simulator (appium) On dashboard and see

    new post? Looks for stuff Tes(ng Yep! Running Test
  7. Then… •  Do that a bunch of (mes •  Set

    up it up to run automa(cally •  Keep it green •  Profit