tektoncd/cli

Improve golden file generation functionality

Open

#1,165 opened on Sep 14, 2020

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Go (269 forks)auto 404
area/testinggood first issuekind/cleanup

Repository metrics

Stars
 (461 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide