Skip to content

Ability to increase test.expect #1

Closed

Description

@aredridel

It would be great to be able to increase test.expect as tests run, so dynamically loaded testing gets easier.

Activity

  1. caolan commented on Apr 26, 2010

    @caolan
    Owner

    Its possible to make multiple calls to test.expect within a test, the most recent call is the number that will be used to check the number of assertions at the end of the test.

    Unfortunately there is no way to just increase the expected number of assertions, only to set it to a new number. This requires you to keep track of the number of expected assertions yourself.

    Does this help?

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

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