Skip to content

Fix catch2 adapter mulit-line benchmark name parsing #351

@epompeii

Description

@epompeii

When a benchmark name is too long catch2 wraps the benchmark name:
benchmark-action/github-action-benchmark#55

Add this test file: https://github.com/benchmark-action/github-action-benchmark/blob/7bec15aacc831ab865c072311324173b9a61a3dc/test/data/extract/catch2_output.txt

For anyone here in the meantime, use this workaround:

As a workaround we can add #define CATCH_CONFIG_CONSOLE_WIDTH 200 (or any width needed) in the benchmark source to overwrite catch2's default output width of 80 characters to prevent long benchmark names wrapping.

benchmark-action/github-action-benchmark#46 (comment)

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