Testing with Kelvin Publisher¶
kelvin-publisher is a CLI tool for testing applications during development. It's not meant to be imported in your code, but used as a standalone testing utility.
Note
You can read more on how to install the Publisher in the Kelvin SDK App overview here.
The publisher has three modes for simulating data:
1. Simulator - Random Data¶
Generate random data to your application's inputs:
This automatically discovers your application's inputs and publishes random data.
2. CSV - File-based Data¶
Publish data from a CSV file:
Replays test data from CSV files.
3. Generator - Custom Data¶
Use a custom Python class to generate data:
| Generator Publisher Example | |
|---|---|
Example generator script:
This mode allows you to implement sophisticated test scenarios with custom logic.