Skip to content

feat: add Fake facade for generating fake data - #1587

Draft
vendion wants to merge 1 commit into
goravel:masterfrom
vendion:f-gofakeit-facade
Draft

vendion wants to merge 1 commit into
goravel:masterfrom
vendion:f-gofakeit-facade

Conversation

@vendion

@vendion vendion commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

📑 Description

  • Add contracts/testing.Fake interface and testing.Fake wrapper around gofakeit
  • Register binding.Fake and facades.Fake() in testing.ServiceProvider and container
  • Update testing/setup to support installing and uninstalling the Fake facade
  • Update make:factory stub to initialize facades.Fake()
  • Generate mocks/testing.Fake and add Fake() helper to testing/mock

Closes goravel/goravel#602

✅ Checks

  • Added test cases for my code

- Add `contracts/testing.Fake` interface and `testing.Fake` wrapper around `gofakeit`
- Register `binding.Fake` and `facades.Fake()` in `testing.ServiceProvider` and container
- Update `testing/setup` to support installing and uninstalling the `Fake` facade
- Update `make:factory` stub to initialize `facades.Fake()`
- Generate `mocks/testing.Fake` and add `Fake()` helper to `testing/mock`

Signed-off-by: Adam Jimerson <vendion@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maybe add gofakeit as a dependency/part of the factory facade

1 participant