When I call Gallio.Framework.TestLog.WriteLine where does the output go to and what do I need to do to view it?
CB
Daily Usage Issues
Where's Gallio.Framework.TestLog.WriteLine output go to?
Started by CoolBreeze on 5,271 views
Remco NCrunch Developer
#6977
13 Feb 2015 21:23 UTC
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.
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.
Post a reply
Log in to reply.