Welcome Guest! To enable all features please Login or Register.



Adding tracesource configuration to ncrunch processes
#1 Posted : Tuesday, May 16, 2017 7:04:04 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 5/11/2012(UTC)
Posts: 47

Thanks: 19 times
Was thanked: 7 time(s) in 7 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?
#2 Posted : Tuesday, May 16, 2017 10:09:50 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,178

Thanks: 687 times
Was thanked: 827 time(s) in 787 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.
Users browsing this topic
Guest (2)
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.NET
This page was generated in 0.017 seconds.