Skip to content

chore: add make test target to root Makefile #1565

@SchoolyB

Description

@SchoolyB

Summary

The root Makefile has build, install, clean, and stubs targets but no test target. Running tests requires either scripts/run_tests.sh directly or ez test (which requires a prior install). A make test target would provide a standard, discoverable entry point.

Expected targets

test: build              ## Run the full test suite
	bash scripts/run_tests.sh

test-unit:               ## Run C unit tests only
	$(MAKE) -C ezc test-unit

test-go:                 ## Run Go tests only
	go test ./pkg/lineeditor/... ./cmd/ez/... ./internal/ezc/...

Implementation guidance

  1. Open the root Makefile
  2. Add test, test-unit, and test-go targets
  3. test should depend on build so the compiler is fresh before testing
  4. Update the help target to include the new targets
  5. Update CONTRIBUTING.md to mention make test as the primary test command

Files to modify

  • Makefile
  • CONTRIBUTING.md (mention make test)

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsRelated to unit tests or test infrastructure

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions