Skip to content

refactor(mocks): The Grand Mock Refactor#136

Merged
sbalabanov merged 1 commit into
mainfrom
sergeyb/mocks
Mar 10, 2026
Merged

refactor(mocks): The Grand Mock Refactor#136
sbalabanov merged 1 commit into
mainfrom
sergeyb/mocks

Conversation

@sbalabanov
Copy link
Copy Markdown
Contributor

Summary

Change test mocks architecture from build-time generation to
source-controlled. A mockgen tool needs to be run to generate mock files
and they are checked in. This allows traditional IDE tools like
VSCode/Cursor/Goland to have a clean language understanding without
using additional plugins. Source control storage overhead is minimal for
microrepo.
As an additional benefit, generated definition could be further trimmed
to only actually used symbols to reduce the compilation time and
artifact sizes.

Test Plan

Issues

Change test mocks architecture from build-time generation to
source-controlled. A mockgen tool needs to be run to generate mock files
and they are checked in. This allows traditional IDE tools like
VSCode/Cursor/Goland to have a clean language understanding without
using additional plugins. Source control storage overhead is minimal for
microrepo.
As an additional benefit, generated definition could be further trimmed
to only actually used symbols to reduce the compilation time and
artifact sizes.
@sbalabanov sbalabanov marked this pull request as ready for review March 10, 2026 18:23
@sbalabanov sbalabanov requested review from a team and behinddwalls as code owners March 10, 2026 18:23
@sbalabanov sbalabanov added this pull request to the merge queue Mar 10, 2026
Merged via the queue into main with commit e8eb455 Mar 10, 2026
11 checks passed
@behinddwalls behinddwalls deleted the sergeyb/mocks branch March 10, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants