Module time

Source
๐Ÿ”ฌThis is a nightly-only experimental API. (test)
Expand description

Module time contains everything related to the time measurement of unit tests execution. The purposes of this module:

  • Check whether test is timed out.
  • Provide helpers for report-time and measure-time options.
  • Provide newtypes for executions times.

Modulesยง

time_constants ๐Ÿ”’ Experimental
This small module contains constants used by report-time option. Those constants values will be used if corresponding environment variables are not set.

Structsยง

TestExecTimeExperimental
The measured execution time of a unit test.
TestSuiteExecTime ๐Ÿ”’ Experimental
The measured execution time of the whole test suite.
TestTimeOptionsExperimental
Structure with parameters for calculating test execution time.
TimeThresholdExperimental
Structure denoting time limits for test execution.

Constantsยง

TEST_WARN_TIMEOUT_S ๐Ÿ”’ Experimental

Functionsยง

get_default_test_timeout ๐Ÿ”’ Experimental
Returns an Instance object denoting when the test should be considered timed out.