NCrunch Forum
»
General Support
»
Daily Usage Issues
»
Adding tracesource configuration to ncrunch processes
Rank: Advanced Member
Groups: Registered
Joined: 5/11/2012(UTC) Posts: 94
Thanks: 28 times Was thanked: 12 time(s) in 12 post(s)
|
We use TraceSource logging in our application. Sometimes it would be useful to enable logging whilst the tests are running. Usually this involves adding some config to the application exe.config. If I want to add this to the NCrunch config files so that output is picked up by the tests which config files should I add it to, or is there a better way to add this config?
|
|
|
|
Rank: NCrunch Developer
Groups: Administrators
Joined: 4/16/2011(UTC) Posts: 6,974
Thanks: 929 times Was thanked: 1256 time(s) in 1169 post(s)
|
Hi, thanks for posting.
Usually, it should be possible to add this to the config file for the test project (i.e. myproject.config). NCrunch specifically detects test project config files and will include them in the runtime environment by using them as the source of configuration for the test application domain.
There are some configuration settings (such as binding redirections) that can only be applied to the config file of the task host process itself (i.e. C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\Remco Software\NCrunch for Visual Studio 2017\nCrunch.TaskRunner462.x86.TestHost.exe.config). I don't believe TraceSource is one of these.
|
|
|
|
NCrunch Forum
»
General Support
»
Daily Usage Issues
»
Adding tracesource configuration to ncrunch processes
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
YAF |
YAF © 2003-2011, Yet Another Forum.NETThis page was generated in 0.025 seconds.