This is a migrated thread and some comments may be shown as answers.

Can I write to the Console in the JC Test Runner?

4 Answers 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Stuart
Top achievements
Rank 1
Stuart asked on 18 May 2015, 12:02 PM

If I can, how do I do it?

 I've tried Console.WriteLine(), Debug.WriteLine() and Trace.WriteLine()

4 Answers, 1 is accepted

Sort by
0
Svetlozar
Telerik team
answered on 21 May 2015, 11:59 AM
Hi,

Capturing console output depends on the framework. We have done it where the framework provides API for redirecting its runner output. What goes (and which method to use) to the output also depends on the framework.

Could you please share with us which testing framework do you use on your side?

Regards,
Svetlozar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Stuart
Top achievements
Rank 1
answered on 21 May 2015, 12:11 PM

Hi Svetlozar,

 

I'm just using MSTest although we may be moving to using NUnit so if you coluld give me details for both, I'd appreciate it.

0
Svetlozar
Telerik team
answered on 26 May 2015, 11:41 AM
Hello,

I did a review on our code and it turned out that we have missed to attach some attributes of the test result for MsTest (namely standard out,error,debug trace). We will fix that in one of our next internal builds, so please stay tuned.

As for NUnit, we capture its output, so you can use Console.Write.

If you have other questions, please don't hesitate to write back.

Regards,
Svetlozar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Stuart
Top achievements
Rank 1
answered on 26 May 2015, 12:16 PM

Cheers Svetlozar,

 

I'll keep an eye out for the next Internal Build.

Tags
General Discussions
Asked by
Stuart
Top achievements
Rank 1
Answers by
Svetlozar
Telerik team
Stuart
Top achievements
Rank 1
Share this question
or