Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add unit tests to test-cli

Open
#577 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
cli, testing

Research direction

Start by reading cmd/test-cli/beacon.go, engine.go, requests.go, and validator.go to identify their external dependencies and where injection is needed. Refactor the affected code for testability, add mocks and unit tests for each listed file, and run the test-cli package tests to confirm they pass.

Written by the indexing model from the issue text.

Description

Description

In order to improve the quality of test-cli pkg, it would be good to add some unit tests for:

  • cmd/test-cli/beacon.go
  • cmd/test-cli/engine.go
  • cmd/test-cli/requests.go
  • cmd/test-cli/validator.go

Unfortunately, for most of those scripts it is required to refactor the code in order to inject dependencies, adding mocks and improving testability

Dominant language
Go
Stars
1.4k
Forks
292
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flashbots/mev-boost

All issues in flashbots/mev-boost

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.