🔬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
andmeasure-time
options. - Provide newtypes for executions times.
Modules
- time_constantsExperimentalThis small module contains constants used by
report-time
option. Those constants values will be used if corresponding environment variables are not set.
Structs
- TestExecTimeExperimentalThe measured execution time of a unit test.
- TestSuiteExecTimeExperimentalThe measured execution time of the whole test suite.
- TestTimeOptionsExperimentalStructure with parameters for calculating test execution time.
- TimeThresholdExperimentalStructure denoting time limits for test execution.
Constants
- TEST_WARN_TIMEOUT_SExperimental
Functions
- get_default_test_timeoutExperimentalReturns an
Instance
object denoting when the test should be considered timed out.