Skip to content

fix(runs): offer Rerun Failed Tests on a run opened from Test History - #169

Merged
roxblnfk merged 4 commits into
mainfrom
fix/replay-rerun-failed
Nov 28, 2026
Merged

roxblnfk merged 4 commits into
mainfrom
fix/replay-rerun-failed

Conversation

@roxblnfk

@roxblnfk roxblnfk commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

🔍 What was changed

  • A tab opened from Test History now has Rerun Failed Tests (toolbar button and shortcut), on PhpStorm and OpenIDE; before, a replay had no restart actions at all. It reruns the failed tests with the archived run's own configuration, restored from run.json, like the tab's other rerun buttons, so a replayed Rerun Failed Tests run keeps its filters. On OpenIDE the rerun is prepared off the EDT, like a live run.
  • PhpStorm: a run configuration that changes only Testo's own fields (group, types, suites, coverage, report or Infection options) keeps them when saved, cloned or archived.

Review notes

  • Only a run's state installs restart actions (PhpTestRunConfiguration's execute on PhpStorm, TestoRunState on OpenIDE), so the replay builds the action itself through the new TestoConfiguration.rerunFailedTestsAction, with the model provider the platform otherwise hands only to the tree's own toolbar.
  • The platform reruns failed tests with the tab's own runner (AbstractRerunFailedTestsAction.execute is package-private), and a replayed tab is run by the platform's default runner; on OpenIDE the action swaps the environment in the data context so TestoProgramRunner prepares the run.
  • The rerun uses the tab's executor, which is always Run on a replay: failed tests of a Coverage archive rerun without coverage, unlike the toolbar rerun.
  • PhpRunConfiguration.writeExternal skips runner settings that equals the defaults, and PhpTestRunnerSettings.equals compares only the PHP plugin's fields, so TestoRunnerSettings now compares its own persisted fields too.

Checklist

A replayed tab's console answers the replay profile as its configuration, so the action never found a Testo configuration to clone; it now takes the archived one, restored from run.json, as the other rerun buttons already do.

Assisted-By: Claude Opus 5.5 <[email protected]>
@codecov

codecov Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

Qodana for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/[email protected]
        with:
          upload-result: true
Contact Qodana team

Contact us at [email protected]

Only a live run's state sets restart actions, so a tab replayed from Test History had no Rerun Failed Tests at all. The replay now installs the action built from the archived configuration through TestoConfiguration.rerunFailedTestsAction.

Assisted-By: Claude Opus 5.5 <[email protected]>
@roxblnfk roxblnfk changed the title fix(runs): rerun the failed tests of a run opened from Test History fix(runs): offer Rerun Failed Tests on a run opened from Test History Nov 28, 2026
…e EDT

fix(run): save a configuration that changes only Testo's own fields

The platform reruns failed tests with the tab's own runner, and a replayed tab's runner is the platform's default one, which prepared the OpenIDE run on the EDT; the action now hands it to TestoProgramRunner. Both actions read the archived configuration off the environment, as the toolbar reruns do.

Saving skips runner settings equal to the defaults, and the inherited equals compares the PHP plugin's fields alone, so Testo's own fields were dropped whenever those were untouched (#171).

Assisted-By: Claude Opus 5.5 <[email protected]>
@roxblnfk
roxblnfk merged commit d8389cc into main Nov 28, 2026
11 checks passed
@roxblnfk
roxblnfk deleted the fix/replay-rerun-failed branch November 28, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A run configuration that changes only Testo's own fields is saved without them Rerun Failed Tests does nothing on a run replayed from Test History

1 participant