Generating Mock Data with #perl
▻https://hackernoon.com/generating-mock-data-with-perl-7836a2ca0548?source=rss----3a8144eabfe3--
Recently at work, in order to test code, our team has created tests which mock data, or in some cases simply mock a positive return, which allows us to more easily isolate specific blocks of code we are working on. I’m sure that this is a fairly common practice in most Test Driven Design ( TDD ) scenarios. However, it got me thinking about an API I used to use when I began learning JavaScript which would generate random users. ▻https://randomuser.me/This is a great resource for mocking User Data. You might think of it as a Lorem Ipsum for randomly generated Users. As I was thinking about this neat tool, and how our team mocks other types of data, I began thinking about how I would go about making my own User Data Generator, similar to the above API.If you want to see the source code for (...)
#perl-data #mock-data-with-perl #programming #data-with-perl