tektoncd/cli

Improve golden file generation functionality

Aperta

#1165 aperta il 14 set 2020

 (5 commenti) (0 reazioni) (0 assegnatari)Go (269 fork)auto 404
area/testinggood first issuekind/cleanup

Metriche repository

Star
 (461 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Right now when we hit make generated it generates golden files for test scenarios and also updates the already existent files for test scenarios. But if there is some name change in the test name, it generates a new golden file, and the old one becomes redundant and remains there forever.

This function should be improved to remove all golden files and generate new ones so that we don't end with redundant golden files.

Guida contributor