DEV Community

Cover image for Why would be better off avoiding Faker and random data in tests
JT Dev
JT Dev

Posted on • Updated on

Why would be better off avoiding Faker and random data in tests

Faker/FFaker can seem like the perfect solution to generate data for testing. But in reality, Faker comes with hidden costs.

Here is what we learned using Faker in our projects πŸ‘‡
Stop using Faker and random data in the test fixtures

Top comments (2)

Collapse
 
sloan profile image
Sloan the DEV Moderator

Hi there, we encourage authors to share their entire posts here on DEV, rather than mostly pointing to an external link. Doing so helps ensure that readers don’t have to jump around to too many different pages, and it helps focus the conversation right here in the comments section.

If you choose to do so, you also have the option to add a canonical URL directly to your post.

Collapse
 
jetthoughts_61 profile image
JT Dev

yep, thx, corrected the link