Skip to content

Can't consistently set number of examples #48

@reedrosenbluth

Description

@reedrosenbluth

I can't seem to set the number of examples in a test I'm writing. I have two almost identical tests, the only difference is the generator, which is also nearly identical, and the assertions in checkAssert. Setting the number of examples using either qt().withExamples(25) or System.setProperty("QT_EXAMPLES", "25") works in the first test, but does not seem to work in the second test, as adding a print statement indicates the test runs more than the set number of times. One edge case I've discovered is that if I set the number of examples to 1 it does in fact limit it to 1, but any other number seems to have no effect for this test.

Any idea how to fix this? Thanks.

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