Skip to content

unit tests with expected execution time #852

@wyli

Description

@wyli

Is your feature request related to a problem? Please describe.
in many cases it is necessary to check whether a unit test could finish within some expected execution time, in addition to the correctness checks of the outputs.

Describe the solution you'd like
this ticket looks for a generic timer wrapper for the unit testing module, so that it automatically fails a test (early) if the test takes longer than the expected execution time when running it on the monai CI/CD servers.

would also be great to have a global flag to switch this feature on/off so that the developers can run the tests locally without an execution time constraint

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions