Skip to content

Add test execution support to debug mode #1951

@flferretti

Description

@flferretti

First of all, thank you so much for this great tool!

Currently, the debug subcommand only supports running the build up to the script creation stage. While this is very helpful for diagnosing build issues, it doesn’t assist with debugging test failures.

To address this, a possible improvement could be to extend the debug subcommand with a --test option that accepts an optional integer index, as discussed in #655 (comment):

# Debug with the first test (index 0, default)
rattler-build debug --recipe recipe.yaml --test

# Debug with a specific test index
rattler-build debug --recipe recipe.yaml --test 1
rattler-build debug --recipe recipe.yaml --test 2

# Preserve original behavior (no test)
rattler-build debug --recipe recipe.yaml

This would make it much easier to reproduce and investigate test failures directly through the debug workflow.

A proposal of the modification can be found at flferretti@4353d58

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions