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

Unit Testing

Open ericraio opened this issue 9 years ago • 9 comments

How should we handling unit testing this project? Should we include this as apart of the definition of done?

ericraio avatar Feb 19 '16 16:02 ericraio

Yes please. Does anyone of you have experience with unittesting rn stuff?

On Fri, 19 Feb 2016 at 17:37, Eric Raio [email protected] wrote:

How should we handling unit testing this project? Should we include this as apart of the definition of done?

— Reply to this email directly or view it on GitHub https://github.com/react-native-simple-router-community/react-native-simple-router/issues/58 .

davidLeonardi avatar Feb 20 '16 11:02 davidLeonardi

Totally !

Does anyone of you have experience with unittesting rn stuff?

Not me :(

charpeni avatar Feb 20 '16 20:02 charpeni

I have a lot of experience testing JavaScript but not RN explicitly, I am sure it's not too hard. I should have some time tomorrow to take a look into this.

ericraio avatar Feb 20 '16 21:02 ericraio

Same here, but I'd appreciate some input with someone who has some experience with RN specific testing. Anybody of our users has some tried-and-tested setup they use professionally?

davidLeonardi avatar Feb 20 '16 23:02 davidLeonardi

@sethx Yeah I agree. I did find this however. https://gist.github.com/jmreidy/4145809229195441d4d4

ericraio avatar Feb 21 '16 00:02 ericraio

http://reactkungfu.com/2015/07/approaches-to-testing-react-components-an-overview/

charpeni avatar Feb 22 '16 01:02 charpeni

/me thinks that react testing is different from react native testing.

I'd like to wait for some additional input from the community before making a decision.

davidLeonardi avatar Feb 25 '16 12:02 davidLeonardi

https://github.com/airbnb/enzyme/blob/master/docs/guides/react-native.md

charpeni avatar Mar 03 '16 13:03 charpeni

That's interesting... will look at that over the weekend. nice find!

davidLeonardi avatar Mar 03 '16 13:03 davidLeonardi