Before jumping headfirst into FactoryBot, we will see the need for such a library. If you want to test your application thoroughly, its mandatory to setup the system at right state and run the unit tests against that state. At times, setting up the test data is not that trivial for many reasons,