Environment type indicator


Is there a configuration parameter for specifying the type/kind of environment (e.g., DEV, QA, STAGE, PROD, etc.)? Or perhaps an alternative role/permission based configuration which could, for example, control whether tests can be run in an environment. If there is no programmatic way, how is this kind of control performed in general?