Skip to content

test: add test framework for the protoc-gen-gorums generator #316

@meling

Description

@meling

Add a more systematic test framework for protoc-gen-gorums so generator behavior can be validated from small programmatically-created .proto inputs instead of relying only on existing fixture coverage. The original idea was to generate proto content, run the generator, and verify both failure cases and exact generated output.

The framework should make it easy to express invalid inputs that must fail at generation time and valid inputs that should produce stable output that can be compared directly. Using exact text comparisons with useful diffs is acceptable here because the goal is to catch generator regressions precisely. If environment variables are useful for printing generated output during debugging, keep that optional and isolated to test support.

The scope should also include cleaning up how generated fixtures are bundled or refreshed if that is necessary to keep the tests maintainable. If go:generate or Makefile support helps keep the workflow consistent, capture that as part of the test harness rather than as a separate unrelated cleanup.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions