Skip to content

Make learning mocks print immediately #303

@thoni56

Description

@thoni56

Currently learning_mocks are collected and reported when constraints are tallied, i.e. at the end of the test.

This makes any learned calls not printed if the test fails with an exception. Something which is not unlikely given that you have not expect()s with will_return() set up yet.

Doing this in the mock() call instead would create a better chance that anything actually comes out.

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