A Short Note – Unit Vs Integration Vs End To End Testing

Hello Readers, CoolMonkTechie heartily welcomes you in A Short Note Series (Unit Vs Integration Vs End To End Testing).

In this note series, we will understand about the difference between unit testing, integration testing and End to end testing in React Testing Framework.

So Let’s begin.


Unit Testing

Unit Testing is an isolated part of your app, usually done in combination with shallow rendering.

Example: A component renders with the default props.


Integration Testing

Integration Testing if different parts work or integrate with each other. Usually done with mounting or rendering a component.

Example: Test if a child component can update context state in a parent.


End To End Testing

It stands for end to end (e to e testing) . Usually a multi step test combining multiple unit and integration tests into one big test. Usually very little is mocked or stubbed. Tests are done in a simulated browser, there may or may not be a UI while the test is running.

Example: Testing an entire authentication flow.


Conclusion

In this note series, We understood about the difference between unit testing, integration testing and End to end testing in React Testing Framework. 

Thanks for reading ! I hope you enjoyed and learned about Unit Testing Vs Integration Testing Vs End to end Testing Concepts in React Testing Framework. Reading is one thing, but the only way to master it is to do it yourself.

Please follow and subscribe to the blog and support us in any way possible. Also like and share the article with others for spread valuable knowledge.

You can find Other articles of CoolmonkTechie as below link :

You can also follow official website and tutorials of React as below links :

If you have any comments, questions, or think I missed something, feel free to leave them below in the comment box.

Thanks again Reading. HAPPY READING !!???

Exit mobile version