Module test::time::time_constants
source · 🔬This is a nightly-only experimental API. (
test
)Expand description
This small module contains constants used by report-time
option.
Those constants values will be used if corresponding environment variables are not set.
To override values for unit-tests, use a constant RUST_TEST_TIME_UNIT
,
To override values for integration tests, use a constant RUST_TEST_TIME_INTEGRATION
,
To override values for doctests, use a constant RUST_TEST_TIME_DOCTEST
.
Example of the expected format is RUST_TEST_TIME_xxx=100,200
, where 100 means
warn time, and 200 means critical time.
Constants
- DOCTEST_CRITICALExperimental
- DOCTEST_ENV_NAMEExperimentalEnvironment variable for overriding default threshold for unit-tests.
- DOCTEST_WARNExperimental
- INTEGRATION_CRITICALExperimental
- INTEGRATION_ENV_NAMEExperimentalEnvironment variable for overriding default threshold for unit-tests.
- INTEGRATION_WARNExperimental
- UNIT_CRITICALExperimental
- UNIT_ENV_NAMEExperimentalEnvironment variable for overriding default threshold for unit-tests.
- UNIT_WARNExperimental
- UNKNOWN_CRITICALExperimental
- UNKNOWN_WARNExperimental