codeception/module-datafactory
Codeception DataFactory module for generating realistic test data and fixtures in your suites. Helps create models/entities with sensible defaults and overrides, making tests cleaner, faster to write, and easier to maintain across unit, functional, and acceptance tests.
Adopt if:
Look elsewhere if:
factory_boy or Symfony’s faker).For Executives: "This package automates the creation of realistic test data for Codeception, cutting test setup time by 30–50% and reducing flaky tests in CI/CD. It’s a low-risk, high-reward investment to improve QA efficiency—especially for projects with complex data dependencies. The MIT license and active community (9 stars, last updated 2022) ensure long-term viability with minimal overhead."
For Engineering: *"The DataFactory module integrates seamlessly with Codeception to generate dynamic test data (e.g., users, orders) using Faker or custom rules. Key benefits:
User::create() calls in tests with $I->haveInDatabase('User', ['name' => 'Test User']),—saving hours per sprint.
Tradeoff: Requires basic PHP/Codeception familiarity to configure, but payoff is immediate for teams with repetitive test data needs."*How can I help you explore Laravel packages today?