Skip to content

Rerun Failed Tests does nothing on a run replayed from Test History #168

Done

Description

@roxblnfk

Description

On a tab replayed from Test History, Rerun Failed Tests starts nothing. Expected: a run of the replayed run's failed tests, as on a live tab.

Both builds build the rerun from myConsoleProperties.configuration and give up unless it is a TestoRunConfiguration. On a replayed tab TestoConsoleProperties.getConfiguration() answers the TestoRunReplayProfile instead (so the replay does not act like a run), so the action always returns null; PhpStorm also logs php.testo.run.configuration.rerun.incorrect.configuration. Found by reading the code, not reproduced in a running IDE.

Steps to reproduce

  1. Run a Testo configuration with at least one failing test.
  2. Open that run from Test History.
  3. Press Rerun Failed Tests on the replayed tab.

Proposed solution

Take the configuration from the replay profile when the properties hold one (TestoRunReplayProfile.testoConfiguration, already restored from run.json), in TestoRerunFailedTestsAction.getRunProfile of both src/phpstorm and src/openide.

Additional context

Found while reviewing the fix for #125 (#167).

Activity

  1. added
    bug
    on Nov 28, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions