ChainSafe / ChainSafe/gossamer
end-to-end tests: use Go build tags instead of `MODE` environment variable
Open
- Dominant language
- Go
- Stars
- 454
- Forks
- 144
- PR merge metrics
- No merged PRs in 30d
Description
## Task summary
The standard is to use Go build tags for separate test types.
We should migrate from the global variable `MODE` reading from the environment variable `MODE` (`rpc`, `stress`, etc.) and use Go build tags instead like we do for integration tests.
Acceptance criteria:
- Remove `MODE` global variable in `tests/utils/gossamer_utils.go`
- Add `//go:build ` to each end to end test files
- Update CI workflows to use `go test ... -tags ` instead of `MODE= go test ....`
Contributor guide
Assessment
This issue has not been assessed yet.