Cloudkibo / KiboTest

0 stars 0 forks source link

Redux State Based Testing #1

Open zarmeen92 opened 7 years ago

zarmeen92 commented 7 years ago

I suggest Dayem to look into capability of mocha framework for integrating Redux State Based Testing. In react, we can identify the success or failure of a test with the help of Actions and State changes. Currently, Dayem is identifying the status of test case with the help of html code. Instead of going through the html code of a web page I suggest him to look for Action types being called in the Redux component of KiboEngage. This will speed up the task of KiboEngage Automated Testing.

In Jest Framework, I found Redux based testing capability @dayemsiddiqui you can through this link https://github.com/reactjs/redux/blob/master/docs/recipes/WritingTests.md and find out if we can do similar thing with mocha? https://medium.com/javascript-inside/some-thoughts-on-testing-react-redux-applications-8571fbc1b78f

jekram commented 7 years ago

@dayemsiddiqui Please look into Jest. as Jest is part of Facebook the same people that created ReactJS.

Also please see this link on ReactJs site:

https://facebook.github.io/react/docs/test-utils.html