Repository navigation
fix(runs): offer Rerun Failed Tests on a run opened from Test History - #169
Merged
Merged
Conversation
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 Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Contributor
Qodana for JVMIt 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 reportTo be able to view the detailed Qodana report, you can either:
To get - name: 'Qodana Scan'
uses: JetBrains/[email protected]
with:
upload-result: trueContact Qodana teamContact 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]>
…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]>
Assisted-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔍 What was changed
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.Review notes
PhpTestRunConfiguration's execute on PhpStorm,TestoRunStateon OpenIDE), so the replay builds the action itself through the newTestoConfiguration.rerunFailedTestsAction, with the model provider the platform otherwise hands only to the tree's own toolbar.AbstractRerunFailedTestsAction.executeis 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 soTestoProgramRunnerprepares the run.PhpRunConfiguration.writeExternalskips runner settings thatequalsthe defaults, andPhpTestRunnerSettings.equalscompares only the PHP plugin's fields, soTestoRunnerSettingsnow compares its own persisted fields too.Checklist