Skip to content

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 <jaypipes@gmail.com>
@jaypipes jaypipes merged commit a5e6bc6 into gdt-dev:main Jun 21, 2024
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