Lux Docs

Development

Building, testing, and contributing

Build

make build-all                    # All 3 binaries
go build -o bin/indexer ./cmd/indexer  # Single binary

Test

make test                         # Unit tests
go test -v ./...                  # Verbose
go test -coverprofile=cov.out ./... # Coverage

431 tests across 7 packages.

E2E Tests

go test -v -tags=integration ./e2e/...

Requires a running luxd node.

Lint

make lint
golangci-lint run ./...

Makefile Targets

TargetDescription
buildBuild main indexer
build-allBuild all 3 binaries
testRun unit tests
test-coverageRun with coverage
test-integrationRun E2E tests
lintRun linter
fmtFormat code
vetRun go vet
dockerBuild Docker image
cleanRemove build artifacts

On this page