This feature is actively being developed and will change before release.
Test File Structure
Create atests.yaml file with your test definitions:
tests.yaml
application.yml:
Test Steps
Each test consists of sequential steps. Two step types are available:Send Step
Pushes a message to an input node (source stub):Assert Step
Validates the output at a specific node:Running Tests
Tests are automatically executed when Streemlined starts if thetests.run configuration is enabled. Configure the test file location and execution options in application.yml or via environment variables.
From the Command Line
In CI/CD
Add Streemlined tests to your CI pipeline by configuring test execution:Test Output
Assertion Options
Best Practices
Start with Interactive Testing, then automate
Start with Interactive Testing, then automate
Use Interactive Testing to build and debug your transformations interactively. Once you’re confident in the logic, codify the scenarios as CI/CD tests in your
tests.yaml file.Test edge cases
Test edge cases
Include tests for:
- Empty arrays and null values
- Missing optional fields
- Boundary conditions (e.g., exactly at threshold values)
- Invalid data that should be rejected
Keep tests focused
Keep tests focused
Each test should verify one specific behavior. This makes failures easier to diagnose and tests more maintainable.
Use meaningful test names
Use meaningful test names
Name tests to describe the scenario being tested: “High-value orders route to priority queue” is better than “Test 1”.
Next Steps
Interactive Testing
Test pipelines interactively during development
Deploy Pipelines
Deploy your tested pipeline to production