nvaccess / nvda

NVDA, the free and open source Screen Reader for Microsoft Windows
https://www.nvaccess.org/
Other
2.1k stars 634 forks source link

Provide ability to see log output when debugging unit tests #7045

Open jcsteh opened 7 years ago

jcsteh commented 7 years ago

In the initial unit testing implementation (#7026), logging is completely disabled for unit tests. While this probably makes sense most of the time, it could be useful to see log output in some cases when debugging or developing a unit test.

We would probably have a scons command line variable to enable/disable this. Some ideas for where the log output could be sent:

  1. It could be buffered and dumped to stdout after the test run.
  2. It could be sent to a file.
  3. It could be sent to some separate output stream. (Open question: what does Visual Studio do? Does it use OutputDebugString?)

One question is whether we need to worry about separating/distinguishing log output for multiple tests or even parallel tests. I think this is overkill, since this will normally be used when debugging a single test.

Adriani90 commented 5 years ago

cc: @feerrenrut this might be of interest, giben the new automated robot framework.

Adriani90 commented 1 week ago

cc: @seanbudd, @gerald-hartig, @hwf1324 for triaging and feedback, this might be of interest especially while progerssing towards NVDA x64 I guess.