Chance.js
6.4#6 in test data generation toolsFree planFree planWebAPI
Visit
| Fact | Chance.js | Mockaroo |
|---|---|---|
| Data types | Its generators cover items including text, people, locations, dates, finance, and web-related values. | The Mock APIs page says users can choose from more than 100 built-in data types, upload reference data, or build data types with the formula API. |
| Integrations | The documentation includes installation and usage instructions for Bower and RequireJS, as well as npm for Node.js. | The API documentation identifies an officially supported Node.js client and lists C# client libraries mockaroo.api and NMockaroo. |
| Intended users | The site gives generating random names and addresses for automated tests as an intended practical use. | Mockaroo describes its use for developers and testers who need realistic test data, and for front-end developers working before a back end is ready. |
| Purpose | Chance generates pseudo-random strings, numbers, and other values for automated tests and other uses that need random data. | Mockaroo generates realistic test data and can create mock back-end APIs for UI development. |
Chance.js suits developers who need generated sample data for automated tests, including names and addresses. It is available for browser and Node.js use, with a command-line package also documented.
Mockaroo suits developers and testers who need realistic sample records or mock APIs. Front-end developers can use it while a back end is not yet ready.