erigon-test-unit

star 3.6k

Run Erigon unit tests locally using make test-short. Use this for fast pre-push verification. Equivalent to the "Unit tests" CI workflow.

erigontech By erigontech schedule Updated 3/11/2026

name: erigon-test-unit description: Run Erigon unit tests locally using make test-short. Use this for fast pre-push verification. Equivalent to the "Unit tests" CI workflow.

Erigon Unit Tests

Runs the full unit test suite with -short -failfast. Catches most regressions in ~5 minutes.

Command

make test-short

Equivalent to the "Unit tests" GitHub Actions workflow (ci.yml).

Run Specific Package

go test -short ./execution/stagedsync/...
go test -short -run TestName ./path/to/package/...

Run from Repository Root

Must be run from the repository root (where the Makefile lives):

cd /path/to/erigon
make test-short

When to Use

  • Before every push as a fast gate
  • After fixing a bug to confirm no regressions
  • Part of the quick gate: make lint && make test-short

CI Equivalent

Local command CI workflow Trigger
make test-short Unit tests (ci.yml) push/PR to main or dispatch

To dispatch remotely on a branch without a PR:

gh workflow run "Unit tests" --ref <branch>
Install via CLI
npx skills add https://github.com/erigontech/erigon --skill erigon-test-unit
Repository Details
star Stars 3,575
call_split Forks 1,522
navigation Branch main
article Path SKILL.md
More from Creator