Skip to content

Upgrade mockery to v3 #9277

@pchila

Description

@pchila

Mockery is used for generating mocks within elastic-agent repository.

At the time of writing, elastic agent uses mockery v2 but this version will not receive feature updates after 6 months from v3 release, although there is a commitment to support new go versions and bugfixes.

The goal of this issue is to switch from mockery v2 to mockery v3.

Definition of done:

  • .mockery.yaml is migrated to v3 following the migration guide
  • mocks are generated in a single file mocks_test.go in the same package as the interface definition/usage abandoning the parallel testing/mocks package tree.
  • modify the dev:regenerateMocks mage target accordingly

Metadata

Metadata

Assignees

No one assigned

    Labels

    TestingchoreTasks that just need to be done, they are neither bug, nor enhancements

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions