Skip to content

feat: add slash command for rerunning failed tests#877

Open
silvi-t wants to merge 1 commit intoKuadrant:mainfrom
silvi-t:RP-test-failures
Open

feat: add slash command for rerunning failed tests#877
silvi-t wants to merge 1 commit intoKuadrant:mainfrom
silvi-t:RP-test-failures

Conversation

@silvi-t
Copy link
Contributor

@silvi-t silvi-t commented Feb 25, 2026

Description

  • Add a new Claude Code slash command for rerunning failed tests from Report Portal
  • Created primarily for release test pipeline launches — instead of copying each failed test one by one, this command allows copying all failed tests from a test target at once and converting them into a single pytest command
  • The command converts dot-notation test names (as copied from Report Portal) into pytest commands, with options to copy to clipboard or execute directly

Changes

New Features

  • Added .claude/commands/rerun-report-portal-tests.md slash command that:
    • Parses dot-notation test names into pytest file.py::function format
    • Handles parameterized test deduplication
    • Offers clipboard copy or direct execution with result analysis
    • Supports iterative rerun of failed tests

Verification steps

  • Invoke the command with /rerun-report-portal-tests and provide a list of dot-notation test names from Report Portal

@zkraus
Copy link
Contributor

zkraus commented Feb 26, 2026

Very nice slash command. And you just gave me an idea to create a helper script to list failed tests via commandline. I will include the script with the new reporting I am working on. In the future we can include that with the slash command.

Copy link
Contributor

@emmaaroche emmaaroche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice slash command 🙌 just tested it out with a few failures from RP and all works well for me, I just have a few comments above ^

Signed-off-by: Silvia Tarabova <starabov@redhat.com>
Copy link
Contributor

@emmaaroche emmaaroche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@trepel trepel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nice work!

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.

4 participants