ChainSafe / ChainSafe/gossamer

end-to-end tests: use Go build tags instead of `MODE` environment variable

Open
#2,457 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.