Documentation

Documentation
V5 Documentation

Track File Dependencies

Project-level NCrunch configuration setting Default Value: true
ID/Tag in config file: TrackFileDependencies

Purpose

Controls whether NCrunch should track files accessed by tests during their execution to identify resource dependencies. This behaviour is applicable to all tests contained in the project where the configuration setting is applied.

Recommendations

When this setting is enabled, NCrunch will introduce low level API hooks into the O/S during test execution to monitor access to the file system. Where accessed files correspond with non-source files included in NCrunch workspaces, tests will be considered as dependent on these files. If the files are changed in the foreground solution, NCrunch will consider the tests to be impacted.

There is no reason to disable this feature unless it is causing unexpected problems.

Constraints

The API hooks used by NCrunch to identify accessed files are quite limited and may not catch all scenarios. This feature does not work for .NET Core.

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