Skip to content

Show tags of failing tests #689

@rickynils

Description

@rickynils

Is your feature request related to a problem? Please describe.
Sometimes I generate Bats test in a matrix-like fashion. That is, I run the same test with different parameters. Test tags are great in these situations because I can encode test parameters with them. Before Bats had tags I simply added the parameter values to the test name. Now I instead add a number to each test variant, to keep the names shorter. So I have my_test_1, my_test_2 etc, with different combinations of tag values. However, when a test fails I only see the test name, not the tags. This makes it hard to track down exactly which test failed.

Describe the solution you'd like
I think it would make sense if Bats printed the tags together with the test name when a failure is found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: Bash CodeEverything regarding the bash codeComponent: CLICommand line flags, exit code handling, ...Priority: HighBroken behavior in specific environments like in parallel mode or only on some operating systemsSize: LargeChanges across several filesType: Enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions