react-native icon indicating copy to clipboard operation
react-native copied to clipboard

[Testing] Creating integration tests

Open besarthoxhaj opened this issue 11 years ago • 7 comments

Hi guys!

We are trying to create some basic integration/snapshot tests for our app.

Here is the repo: https://github.com/Danwhy/learn-react-native/tree/master/testing

Our tests are just hanging or always passing. However in general we would like to know how to write basic integration tests for components.

Any suggestions are more than welcome!:)

besarthoxhaj avatar Aug 26 '15 14:08 besarthoxhaj

:+1:

NataliaLKB avatar Aug 26 '15 14:08 NataliaLKB

:+1:

claireinez avatar Aug 26 '15 15:08 claireinez

:+1:

izaakrogan avatar Aug 26 '15 16:08 izaakrogan

Check out: https://github.com/kif-framework/KIF for acceptance testing - I've had good success using this on a React Native app. Alternatively, like you have attempted here, you could use the integration testing harness built into React Native. Sorry there is not currently a lot of documentation around this. @tadeuzagallo may be able to help you out. If you figure it out we would love to add a section on this to the docs!

brentvatne avatar Aug 30 '15 21:08 brentvatne

@brentvatne you suggested, also https://github.com/facebook/webdriveragent . Close?

browniefed avatar Sep 13 '15 20:09 browniefed

Happy to close it guys! Thanks for the feedbacks!

besarthoxhaj avatar Sep 13 '15 21:09 besarthoxhaj

:smile: :rocket:

brentvatne avatar Sep 13 '15 23:09 brentvatne