Renamed tests are recognised, rewritten tests get a new version
Renaming a test or moving it to another file used to leave its old entry behind as a test that never ran again, and a test rewritten under the same name looked like the same test with the same history. TestRelic now tracks which test is which, separately from its name and its steps.
- A rename or a move is recognised. When a test's title changes but its steps don't, or it moves to another file with the same title and steps, TestRelic treats it as the same test. The old name is tucked behind an "N superseded names hidden" note in the Test Cases list, with a Show button, instead of sitting there as a test that stopped running.
- A rewrite is a new version. When a test's steps change under the same name, TestRelic records a new version. A rename is recorded as a version too, so it shows up on the test's very next run.
- Version history for every test. Open it from the test's row in the Test Cases list: each version, newest first, with what changed (the steps, the title or the suite) and the run it first appeared in, then every name the test has had.
- Tests that share a name are called out. A banner above the Test Cases list counts the names held by more than one test, and says when one row is blending several tests, so its pass rate and flakiness aren't any single test's history. Review duplicate names opens the groups, where you can merge two entries that are really one test or keep both. A merge can be split again, and TestRelic never merges tests on its own.
- Search for them. The Test Cases search understands
duplicate:true, andversion:with a number:version:3,version:>=2for tests that have changed, orversion:nonefor tests not versioned yet.
Versions and rename tracking come from the steps a test reports, so they apply to frameworks that report steps, such as Playwright. Nothing to set up. See Repositories for the Test Cases tab.