go-testfixtures / testfixtures

Ruby on Rails like test fixtures for Go. Write tests against a real database
https://pkg.go.dev/github.com/go-testfixtures/testfixtures/v3?tab=doc
MIT License
1.12k stars 80 forks source link

Add range and faker support #159

Closed gintaras-fomin closed 9 months ago

gintaras-fomin commented 1 year ago

Adding data range generation and fake data generation support to templates and CLI.

Idea from Alice PHP library: https://github.com/nelmio/alice/blob/master/doc/complete-reference.md#fixture-ranges

andreynering commented 9 months ago

Hi @gintaras-fomin,

Sorry for taking so long to respond.

I don't think there's the need to have this as a builtin feature.

It's already possible to specify additional functions to template by using TemplateFuncs. And for range, you could have a script to generate the files.