Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Faker

A faker is a tool that generates fake data, for testing purposes.

Using a faker happens in different situations:

  • Seeding Databases: populating a database with sample users, products, or orders to test how your application performs under realistic conditions
  • Testing: creating dummy data for unit and integration tests to ensure the code works correctly in more realistic circumstances
  • Prototyping: quickly generating placeholder content, like names and addresses, for a new feature demonstration
  • Anonymizing Data: safely replacing sensitive production data with fake but realistic-looking data for use in development or debugging.

Documentation

See Also