If there is a failure scenario, i want to continue test suite · Issue #793 · ThrowTheSwitch/Ceedling · GitHub
Skip to content

If there is a failure scenario, i want to continue test suite #793

Open

Description

@Emre-ee

Hi,

When I test my project, test suite does not continue if there is a failure scenario. I used Google Test framework and there is called EXPECT_EQ(expect, actual) macro. You can use it for this purpose. Do you think add new features to Unity like TEST_EXPECT_EQUAL(expect,actual) ?

Activity

  1. mvandervoord commented on Jul 20, 2023

    @mvandervoord
    Member

    Yes. I believe there is an open issue for this already? If not, it's definitely something we've talked about doing. :)

  2. hiSandog commented on Jul 11, 2026

    @hiSandog

    A non-fatal expectation needs more than a macro alias: Unity must record the failure, return control to the test body, and still run teardown while preserving the first/all failure locations. It should remain distinct from existing fatal assertions so users can choose whether continuing is safe after a mismatch. Tests should cover several expectations in one test, an expectation followed by a crash-prone operation, and suite exit status/report counts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions