[Metricbeat] Improve go test flags #13531
Labels
bug
candidate
Candidate to be added to the current iteration
enhancement
Metricbeat
Metricbeat
Team:Integrations
Label for the Integrations team
When testing kubernetes metricbeat module, I realize we have three different flags for generating/updating files:
For
-generate
, it regenerates the.json
files under_meta/testdata
. For-update_expected
, it regenerates the.expected
files under_meta/test
. For this enhancement, the goal is to use one flag-generate
to generate/update all files. So-data
and-update_expected
can be deprecated later.It would be nice to have a common package for all kinds of test helpers so they reuse the logic to decide if files should be regenerated.
The text was updated successfully, but these errors were encountered: