Understanding randomGenerator functions for #testing #javascript functions
▻https://hackernoon.com/understanding-randomgenerator-functions-for-testing-javascript-functions
RandomizeRecently I had thrown a bounty for converting a flat json to a nested json. You can check more about it in the link belowSteem Bounty : Nestify a flat JSON object - Steemit▻https://steemit.com/@mightypanda provided a solution to the same and won the bounty. I wanted to test the solution for various scenarios. Creating the inputs for the edge cases was very time consuming. I thought of using #random generators for testing the same. So I started digging a little bit.To randomise or notThere is no agreement on using random generators for testing. The argument against using random generators was that the test cases should be deterministic meaning that you should know what is the input and what is the expected output. While this makes sense from the test report and test suites, I (...)