A C++ library for generating realistic fake data across 40+ categories, inspired by Faker.js.
Faker C++ is a C++ library for generating realistic, randomized fake data across numerous categories such as person names, addresses, internet profiles, dates, and financial information. It solves the problem of needing high-quality, locale-aware test data for C++ applications during development, testing, and demonstration phases.
C++ developers building applications that require realistic test data for unit testing, database seeding, API mocking, or creating demo prototypes.
Developers choose Faker C++ for its comprehensive, C++-native API, extensive module coverage, support for 40+ locales, and seamless integration with popular C++ build systems and package managers like CMake, Conan, and vcpkg.
C++ Faker library for generating fake (but realistic) data.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Includes over 40 modules covering airline data, animals, books, and more, providing extensive fake data generation capabilities as listed in the README.
Supports 40+ locales for generating region-specific names, addresses, and financial information, enhancing testing for internationalized applications.
Offers clear instructions for integration with CMake, Conan, vcpkg, and Bazel, simplifying adoption in various C++ project setups.
Provides comprehensive code snippets for each module in the README, reducing the learning curve for developers using specific data types.
Requires modern compilers like GCC 13+ or Clang 16+, which may exclude legacy projects or environments with older toolchains.
The documentation does not mention how to seed random generators, making it difficult to ensure reproducible test data across runs.
Depends on GTest by default, and while it can be disabled with a CMake flag, this adds complexity for users who only need the core library.
faker-cxx is an open-source alternative to the following products: