Debug.WriteLine ignored in Unit Tests (in Run mode)

I may be misinterpreting this, but it seems that Unit Tests ran from R# ignore the Debug.WriteLine statements within those unit tests.

When tests are Run from either the code window (by clicking on the side glyph and choosing "Run ") or the Unit Test Runner window by clicking the green Play arrow, any Debug.WriteLine statement are not displayed in the Debug window.

However, if tests are run in let's call it R# UT debug mode (by either selecting "Debug " or by clicking the Bug button in the UTR window), Debug.WriteLine statements correctly get displayed to the Debug window.

Can anybody else confirm this situation?

Thanks.

2 comments
Comment actions Permalink

"Philip Mateescu" <philip.mateescu@datacert.com> wrote in message
news:28069239.1150748678168.JavaMail.itn@is.intellij.net...
>I may be misinterpreting this, but it seems that Unit Tests ran from R#
>ignore the Debug.WriteLine statements within those unit tests.
>

When tests are Run from either the code window (by clicking on the side
glyph and choosing "Run ") or the Unit Test Runner window
by clicking the green Play arrow, any Debug.WriteLine statement are not
displayed in the Debug window.


Hmmm...there isn't a Debug window, per se, is there? There's the Output
window, and you'd need to select the correct option from the Show output
from: pulldown.

///ark


0
Comment actions Permalink

Mark,

Yes, by "Debug window" I meant "Output window filtered by Debug messages".

0

Please sign in to leave a comment.