Skip to content

Report dead snapshots for tests that still exist #129

Description

@mjambon

Scenario:

  1. I decide that a test should capture stdout. I commit the snapshots on my git branch.
  2. I change my mind and make the test capture nothing or maybe capture stderr instead.
  3. The test program should report the snapshot files that are no longer in use but it doesn't.

Expectation:

  • ./test status should report that the stdout file containing the snapshot is no longer in use and can be removed.
  • --autoclean should remove the dead snapshot files (even if their folder remains because say we now capture stderr).

Importance:

  • This is not critical. Accidentally merging my dead snapshots into my project's main branch is unlikely to happen because we review the list of files before merging.
  • It's useful for cleaning up easily.
  • It would match user expectations.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions