Skip to content

[Record and Playback] Only record the tests that have changed #5156

Closed

Description

To reduce the amount of changes per PR, as well as to keep older untraceable tests clean of the folder tree, we should:

  1. Find the set of tests that changed (see note below).
  2. Only record the tests that changed.
  3. Find the recording files that have no matching test.
  4. Remove the files that didn't match any existing test.

Note: To find the changing tests we can either:

a. Use git (either a Node client or child_process) to get the changed files through a diff.
b. Run the playback of each test to see if it doesn't pass, and then add them to the changed-files-pool.
- If so, we need to suppress any console message that might be related to the playback tests before attempting to record them.
- We must also make sure that these playbacks don't add substantial delay to the recordings.

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

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.test-utils-recorderLabel for the issues related to the common recorder

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions