Best Ways to Generate or Obtain Test Data for Discourse?

Hi everyone :waving_hand:

I’m currently working with Discourse and trying to better understand how to test features and workflows effectively. One challenge I’m facing is how to get realistic and useful test data for a Discourse instance.

Are there built-in ways to seed or generate sample data in Discourse?

Yes from the console at discourse root you can run:

rake dev:populate
4 Likes

Thanks for the suggestion! I just wanted to clarify — I’m not looking to populate users or topics. What I’m really interested in is creating different types of test files (like .mov, .mp4, .mp3, etc.) that can be uploaded as attachments in posts

Do you know if there’s a recommended way to generate or prepare various media files for testing purposes

1 Like

yes, connect a web cam and record away! :slight_smile:

why not use generative AI?

1 Like

Thanks for the tip! I can record for .mov or .mp4 files.

For the other file like mp3, genAI is ok, i think, thank you so much for your advice !

1 Like