gdt-dev / gdt

Go Declarative Testing
Apache License 2.0
4 stars 2 forks source link

simplify Evaluable interface and Scenario.Run #33

Closed jaypipes closed 4 months ago

jaypipes commented 4 months ago

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.