Skip to content

test(cli): add integration test for --ignore-exit-code + NoDataWritten path #162

@rocketman-code

Description

@rocketman-code

There is no integration test for the case where --ignore-exit-code is set, the program exits non-zero, and no profiling data is written. In this case the NoRuns error should NOT be suppressed (the user expects non-zero exit), and the CLI should return NoDataWritten instead.

A test similar to profile_suppresses_no_runs_error_on_nonzero_exit but with --ignore-exit-code added, asserting stderr contains "profiling data was not written".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions