I've been working on web development and testing, but keeping my mock data organized and synchronized has become a real hassle. I often find myself hardcoding data or relying on local tools, which can get messy quickly. I'm looking for a better system to manage realistic mock data that's easy to share among my team. What tools or strategies do you all recommend?
4 Answers
I've got a JavaScript file that I carry around for generating mock data. I realized there's a limited set of data types I'll need (like names and addresses), so I created a script that uses those types. It even has a Konami code that fills in the form fields with random values when triggered.
It really depends on what kind of application you're working on, but I've had good success with the Laravel seeding system. It makes it a lot easier to manage and generate the mock data you need!
I really like using Mockoon. It lets you import and export data as JSON, which makes syncing with a repository a breeze. My last team even kept Mockoon configurations in our Confluence docs, which was super handy.
That's perfect, thanks for the heads up!
I use faker.js to create realistic test data. It fits the model and helps avoid any blind spots in my tests. I generate the data right before the tests, but I don't really need to share it since it gets discarded after.

Thanks for the tip! I'll definitely check this out—if it saves me time, it's worth a look.