getgauge-contrib / gauge-go

Go language plugin for Gauge
GNU General Public License v3.0
71 stars 21 forks source link

Add current execution context in hook #5

Open apoorvam opened 8 years ago

apoorvam commented 8 years ago

To get additional information about the current specification, scenario and step executing, an additional ExecutionContext parameter can be added to the hooks method.

More details on this feature: http://getgauge.io/documentation/user/current/advanced_readings/execution_hooks/context.html

emlaver commented 2 years ago

+1 it would be great to have access to the context object which would be in-line with the Node, Python, Java, and possibly other language implementations.

Updated documentation link: https://docs.gauge.org/writing-specifications.html?os=macos&language=golang#current-execution-context-in-the-hook