A Plugin for the Flowcore CLI to generate testing data from data streams
npm install @flowcore/cli-plugin-testingFlowcore CLI Plugin - Testing
=================
A Plugin for the Flowcore CLI to generate testing data from data streams



sh-session
$ npm install -g @flowcore/cli-plugin-testing
$ testing COMMAND
running command...
$ testing (--version)
@flowcore/cli-plugin-testing/1.1.0 darwin-arm64 node-v20.15.0
$ testing --help [COMMAND]
USAGE
$ testing COMMAND
...
`
Commands
* testing generate test-set STREAMtesting generate test-set STREAMGenerate a test data set from a stream
`
USAGE
$ testing generate test-set STREAM --directory [-e ] [-j] [-l] [-m ] [-p] [-c] [-s ]
[--profile ] [--ai] [--filter-in ...] [--filter-out ...] [--redact-mask --redact
...] [--fake-properties ... [--fake-type ... --fake ...]] [--sample-size ]ARGUMENTS
STREAM stream url to connect to
FLAGS
-c, --scan Scan the full time range
-e, --end= End time to stream to, example: 2024-07-08T12:20:44Z, 1y, 1m, 1w, 1d, 1h, now
-j, --json Output json only
-l, --[no-]live Change to live mode when reaching last time bucket
-m, --max= Maximum number of events to send to the destination
-p, --payload Only send the event payload to the destination
-s, --start= Start time bucket to stream from, example: (2024-07-08T12:20:44Z, 1y, 1m, 1w, 1d,
1h, now)
--ai use AI to process the test set further
--directory= (required) output directory
--fake=... specify json paths to fake fields in the test set
--fake-properties=... specify the properties to use when faking fields "value,key=value,key=value" format,
only applicable if fake-type flag is used, you can use most of the fakerjs api
(https://fakerjs.dev/api/) by using the properties to pass to the method, needs to
be in the same order as the fake flag
--fake-type=... specify the type to use when faking fields, only applicable if fake flag is used,
you can use most of the fakerjs api (https://fakerjs.dev/api/) by using the path to
the method, needs to be in the same order as the fake flag
--filter-in=... specify json paths to keep fields in the test set before processing or storing to
disk
--filter-out=... specify json paths to remove fields from the test set before processing or storing
to disk
--profile= Specify the configuration profile to use
--redact=... specify json paths to redact fields in the test set before processing or storing to
disk
--redact-mask= [default: REDACTED] specify the mask to use when redacting fields, only applicable
if redact flag is used
--sample-size= [default: 100] number of events to collect, defaults to 100, -1 to collect all
events
DESCRIPTION
Generate a test data set from a stream
EXAMPLES
$ testing generate test-set
``_See code: src/commands/generate/test-set.ts_