How can I make BeforeSuite steps configurable?
- Dominant language
- Go
- Stars
- 2.7k
- Forks
- 280
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 2
Description
I need to do something like the following:
```
BeforeSuite:
Given my db runs at "{{DB_HOST}}"
Scenario:
Given I can reach my api at "{{API_HOST}}"
When I make a request to get all gifts with label "{{GIFT_LABEL}}"
Then I should get at least 1 gift back
```
Then in a BeforeSuite step I want to seed my database, then I can run different scenarios in parallel that depend on the seeded data. I need to have DB_HOST configurable to enable my tests to run across environments (eg. a db deployed locally is going to have a different hostname from a db deployed on Kubernetes).
Contributor guide
Research direction
The issue names no files or tests; start by locating Godog's existing BeforeSuite handling and configuration entry points, then trace how scenarios are coordinated. Done means the shown setup can seed a database with configurable hosts and run dependent scenarios in parallel across local and Kubernetes environments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100