Godog
Using the Go Agent with Godog
The Go Agent provides special support for the Ginkgo BDD test framework. When enabled, the agent automatically integrates with Ginkgo's test lifecycle to track test execution.
Configuration
To use the Go Agent with Ginkgo tests, simply add the --enable-godog
parameter when following the Steps for Instrumenting a Test Runner with SeaLights Go Agent (Default Usage - Go Test)
Example Configuration
Like most other parameters, you can add the Godog parameter in three different ways: CLI flags, environment variables, or configuration file. The examples below demonstrate each approach, using the minimum recommended parameters for a Ginkgo Test Runner. For additional configuration options, see the Go Agent Parameter Reference Table.
Example 1: All parameters as CLI flags
./slgoagent config \
--token="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
--tests-runner \
--test-stage="component" \
--enable-godog \
--lab-id="shoppingcart.dev.qa-blue"
Last updated
Was this helpful?