V4 Documentation

Custom Environment Variables

Global-level NCrunch configuration setting Default Value: (none)
ID/Tag in config file: CustomEnvironmentVariables


This setting allows you to define environment variables that will be present in all build and test processes used by NCrunch.

The environment variables are shared through grid nodes executing work on behalf of a client machine. This makes it possible to create user-specific environment variables to allow custom behaviour to be executed on shared grid nodes.


Because environment variables can always be set in a global scope on the machine running NCrunch, this setting is only widely useful when using NCrunch with distributed processing.

This setting is the most reliable way to make grid nodes aware of the user they are executing tasks for.

Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download