๐ฌ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_
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ยง
- Test
Exec Time Experimental - The measured execution time of a unit test.
- Test
Suite ๐Exec Time Experimental - The measured execution time of the whole test suite.
- Test
Time Options Experimental - Structure with parameters for calculating test execution time.
- Time
Threshold Experimental - 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.