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

5 posts, 0 answers
  1. Stuart
    Stuart avatar
    7 posts
    Member since:
    Jan 2015

    Posted 18 May 2015 Link to this post

    If I can, how do I do it?

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

  2. Svetlozar
    Admin
    Svetlozar avatar
    271 posts

    Posted 21 May 2015 Link to this post

    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
  3. DevCraft banner
  4. Stuart
    Stuart avatar
    7 posts
    Member since:
    Jan 2015

    Posted 21 May 2015 in reply to Svetlozar Link to this post

    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.

  5. Svetlozar
    Admin
    Svetlozar avatar
    271 posts

    Posted 26 May 2015 Link to this post

    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
  6. Stuart
    Stuart avatar
    7 posts
    Member since:
    Jan 2015

    Posted 26 May 2015 in reply to Svetlozar Link to this post

    Cheers Svetlozar,

     

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

Back to Top
DevCraft banner