Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maint(testutils/golden): Add GoldenTracker to track the used golden files and use it #601

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Oct 24, 2024

  1. testutils/args: Add function to get the running tests

    It allows to fetch the list of tests that are requested to run from
    arguments
    3v1n0 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    3139201 View commit details
    Browse the repository at this point in the history
  2. testutils/golden: Add GoldenTracker to track the used golden files

    If a test using a golden file gets renamed or removed we don't have any
    strategy to check if the related golden file(s) got updated as well.
    
    To make this possible, add a new struct that allows tests to track their
    test cases and check if the related golden files are being used, or fail
    otherwise
    3v1n0 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    b7759d9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5689351 View commit details
    Browse the repository at this point in the history