Crates.io | faking |
lib.rs | faking |
version | 1.0.1 |
source | src |
created_at | 2024-06-05 04:41:15.857292 |
updated_at | 2024-06-05 04:41:15.857292 |
description | faking is a cli tool that generates test data in various formats from a given schema |
homepage | |
repository | https://github.com/Data-Construct/faking-cli |
max_upload_size | |
id | 1262388 |
size | 124,769 |
Single generator
> faking "I32" -n 10
-1858314450
-222718204
1350368207
1761043599
534217560
806407691
1799913151
-210038962
-857619727
259086971
Custom schema generation (JSON)
> faking -s cust_schema.json -n 5
[
{
"field-1-bool": bool,
"filed-2-i8": -62,
"field-3-obj-or-null": null,
"field-4-obj": {
"inner-field-1-uuid": "886c6e12-3f5c-466a-8da3-b416caeffa79",
"inner-field-2-uuid": "a0946c18-24b0-471e-b996-6f1459de981e"
}
},
....
]
For a list of generators and their categories you can use the following command
faking list
cargo run -- --help
cargo run -- -s .\schemas\testcase.json