tremor-rs / tremor-runtime

Main Tremor Project Rust Codebase
https://www.tremor.rs
Apache License 2.0
843 stars 128 forks source link

Extend tremor-cli test to use tremor script to evaluate test results #884

Open Licenser opened 3 years ago

Licenser commented 3 years ago

Describe the problem you are trying to solve

The integration testing framework allows for either for a simple "contains" check for any event or full file quality for all events.

It would be really nice to have the ability to run integration tests and use a tremor script for evaluating success/failure.

Describe the solution you'd like

For tests have the option to use script: <script file> that will run a script over the results. We can use state to keep track of data.

Notes

It would be nice to investigate further if other testing options would benefit, it would also be nice to investigate if inlining the script would make sense in (some) cases

srisatya12 commented 3 years ago

I want to work on this issue

Licenser commented 3 years ago

Heya again @srisatya1197 :) we try to do one topic at a time so lets finish #854 first and then I'll sign this over to you :) that'll also get you a chance to get comfortable with the codebase!

srisatya12 commented 3 years ago

Ok @Licenser Sir.