Skip to content

feat: add slash command for rerunning failed tests#877

Merged
silvi-t merged 1 commit intoKuadrant:mainfrom
silvi-t:RP-test-failures
Mar 4, 2026
Merged

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

Conversation

@silvi-t
Copy link
Copy Markdown
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

Comment thread .claude/commands/rerun-report-portal-tests.md Outdated
@zkraus
Copy link
Copy Markdown
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.

Comment thread .claude/commands/rerun-report-portal-tests.md Outdated
Comment thread .claude/commands/rerun-report-portal-tests.md Outdated
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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!

@silvi-t silvi-t merged commit 6a30bf8 into Kuadrant:main Mar 4, 2026
4 checks passed
@silvi-t silvi-t deleted the RP-test-failures branch March 27, 2026 08:56
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