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:
| Random Data Publisher Example | |
|---|---|
1 2 | |
This automatically discovers your application's inputs and publishes random data.
2. CSV - File-based Data
Publish data from a CSV file:
| CSV Data Publisher Example | |
|---|---|
1 2 | |
Replays test data from CSV files.
3. Generator - Custom Data
Use a custom Python class to generate data:
| Generator Publisher Example | |
|---|---|
1 2 | |
Example generator script:
| Example Generator for Publisher Python Example | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
This mode allows you to implement sophisticated test scenarios with custom logic.