Closed Bug 1714036 Opened 3 years ago Closed 3 years ago

FOG: Allow easy updating of code gen snapshot tests

Categories

(Toolkit :: Telemetry, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: janerik, Assigned: janerik)

Details

Attachments

(1 file)

Right now it's a bit of a hassle to update the expected output of the code generator.
One has to manually modify the metrics index, run a build, then copy the right files into t/c/g/pytest (with different names then their generated ones).

But the test already sees the new content! We can just let it write it when asked to do so.

One can now run the tests with UPDATE_EXPECT=1 and the code will
update the files, so one can then commit them (after verifying that they
do what they should)

Pushed by jrediger@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/96f3dac42ba9
Add a way to automatically update the expected file contents for Glean tests. r=chutten
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: