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

End-To-End Tesing with ReactNative

End-To-End Tesing with ReactNative

Talking about testing in the React Native mobile application development

Hyperjump Tech

April 16, 2024
Tweet

More Decks by Hyperjump Tech

Other Decks in Programming

Transcript

  1. A TECHNIQUE USED TO TEST WHETHER THE FLOW OF AN

    APPLICATION RIGHT FROM START TO FINISH IS BEHAVING AS EXPECTED SO, END-TO-END TESTING IS…
  2. THE PRACTICE OF RUNNING YOUR APP ON A REAL DEVICE

    OR SIMULATOR AND INTERACTING WITH IT LIKE A REAL WORLD USER WOULD. WHAT TECHNIQUE?
  3. WHY WE NEED END-TO-END TESTING? It allows developers to push

    code without worrying about breaking things It enables releases with extra confidence it catches errors that are missed during manual regression testing
  4. WHAT IS BLACK / GREY BOX In Grey Box =

    (code) is partially known In Black Box = (code) is unknown
  5. EXAMPLE OF BLACK BOX TESTING In home screen, klik tab

    contacs It should navigate to contacs screen Periodically check if the condition is true fail with an error after a time if not
  6. DETOX BY WIX Gray box end-to-end testing and automation library

    for mobile apps. Detox tests your mobile app while it's running in a real device/simulator, interacting with it just like a real user.
  7. DETOX BENENFITS: Cross Platform: Write cross- platform tests in JavaScript.

    Currently supports iOS and Android. Runs on Devices (not yet supported on iOS): Gain confidence to ship by testing your app on a device/simulator just like a real user. Automatically Synchronized: Stops flakiness at the core by monitoring asynchronous operations in your app. Made For CI: Execute your E2E tests on CI platforms like Travis without grief. Test Runner Independent: Use Mocha, AVA, or any other JavaScript test runner you like. Debuggable: Modern async- await API allows breakpoints in asynchronous tests to work as expected.