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

Notification

Icon
Error

Adding tracesource configuration to ncrunch processes
samholder
#1 Posted : Tuesday, May 16, 2017 7:04:04 PM(UTC)
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?
Remco
#2 Posted : Tuesday, May 16, 2017 10:09:50 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 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
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.027 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download