Skip to content

Expensive test cases #90

@GiovaniGuizzo

Description

@GiovaniGuizzo

I am dealing with a few tests in a project that is used to manage graphs. As you can imagine, they take a long time when they are testing specific graph traversal algorithms.

The issue here is that the default timeout we enforce is too low for those tests. Even when I double the timeout, these tests still fail from time to time. Increasing the parameter even more would mean that all tests have the same timeout, which would increase the time needed by Gin to perform the search in case of infinite loops.

It is not a bug exactly, but I was thinking that it could be improved in the future to avoid such a thing.
Perhaps get the maximum time needed by a given test case in the original program over the 10 repetitions and dynamically setting the timeout for the variants to, say, 2 x MAX or a given constant, whichever is bigger.
That way we could dynamically treat such test cases.

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