cosmos / cosmos/evm

Remove the use of build tags for testing

Open
#438 2 comments 0 reactions 0 assignees View on GitHub
good first issue testing
Dominant language
Go
Stars
164
Forks
213
Avg merge
3d 58m
Merged PRs (30d)
12

Description

Follow up from some discussion in https://github.com/cosmos/evm/pull/387.

Right now a lot of our testing uses logic that is built with `-tags=test`. This creates pain when testing isolated functions and makes it so that sometimes we are not directly testing the logic we have written - we are testing some other compiled "test version".

Using normal rules around testing like _test packages and functions, we should be able to move logic away from using build tags and just into the native testing capabilities of Go.

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.