[][src]Module test::time_constants

🔬 This is a nightly-only experimental API. (test)

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_NAMEExperimental

Environment variable for overriding default threshold for unit-tests.

DOCTEST_WARNExperimental
INTEGRATION_CRITICALExperimental
INTEGRATION_ENV_NAMEExperimental

Environment variable for overriding default threshold for unit-tests.

INTEGRATION_WARNExperimental
UNIT_CRITICALExperimental
UNIT_ENV_NAMEExperimental

Environment variable for overriding default threshold for unit-tests.

UNIT_WARNExperimental
UNKNOWN_CRITICALExperimental
UNKNOWN_WARNExperimental