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

Notification

Icon
Error

Where's Gallio.Framework.TestLog.WriteLine output go to?
CoolBreeze
#1 Posted : Friday, February 13, 2015 7:44:29 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 7/11/2014(UTC)
Posts: 79
Location: United States of America

Was thanked: 9 time(s) in 9 post(s)
When I call Gallio.Framework.TestLog.WriteLine where does the output go to and what do I need to do to view it?

CB

Remco
#2 Posted : Friday, February 13, 2015 9:23:04 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)
There are two possibilities here -

1. The log will be captured in the Gallio test results report and will end up in the test output (similar to Debug.Write and Console.Write), though likely at the bottom of the output and not synchronised with the rest of the output
2. It will land in a unmonitored buffer that will be deallocated after the test run is completed with no way to access it (i.e. it's swallowed).

If you need to get output from your tests, I recommend using Debug.WriteLine or Console.WriteLine, perhaps from behind some kind of interface or facade so that you can direct the output elsewhere if you need to. This is the widely accepted way to output data from test code and will work for all test frameworks.
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.022 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download