Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify Evaluable interface and Scenario.Run #33

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

jaypipes
Copy link
Member

No longer pass the *testing.T down into Plugin's Spec.Eval() method, freeing up plugins to focus on actions and assertions. Scenario.Run() now handles the *testing.T and the trace context centrally instead of plugins needing to do this.

Also simplifies the Scenario.Run() interface and Evaluable.Eval() interfaces to return (result.Result, error) to more cleanly pass back RuntimeErrors instead of needing a Result.RuntimeError() method.

No longer pass the `*testing.T` down into Plugin's Spec.Eval() method,
freeing up plugins to focus on actions and assertions. Scenario.Run()
now handles the `*testing.T` and the trace context centrally instead of
plugins needing to do this.

Also simplifies the Scenario.Run() interface and Evaluable.Eval()
interfaces to return (result.Result, error) to more cleanly pass back
RuntimeErrors instead of needing a Result.RuntimeError() method.

Signed-off-by: Jay Pipes <[email protected]>
@jaypipes jaypipes merged commit a5e6bc6 into gdt-dev:main Jun 21, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant