How do I get stdout into mstest output when running in new app domain?
Posted
by btlog
on Stack Overflow
See other posts from Stack Overflow
or by btlog
Published on 2010-03-08T10:58:13Z
Indexed on
2010/03/08
11:51 UTC
Read the original article
Hit count: 170
I have been working on test framework, which creates a new app domain to run the tests in. The primary reason being the dll's that we are testing has some horrible code that relies on the dll being located in the app domain path. (No I can't change this code.)
The problem that I am having is that my test team is writing a bunch of functional tests in mstest and one of the loggers, that writes to Console.Out, does not have any of the log information captured in the trx output. When running the code through a console app all of the log information is output fine. So do the other loggers that have been implemented.
My thought is that mstest is setting its own TextWriter to Console.Out, but the new app doamin has it's own TextWriter for Console.Out as the new app domain has it's own set of statics.
I appreciate your ideas.
© Stack Overflow or respective owner