Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 941329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:06:11+00:00 2026-05-15T22:06:11+00:00

I have an integration test harness which launches a console exe several times, simultaneously,

  • 0

I have an integration test harness which launches a console exe several times, simultaneously, each in its own appdomain. As soon as any one of the console exe applications exits from its appdomain, it causes stdin, stdout, stderr to shutdown for all of the remaining console exe appdomains as well. That is, the console is closed even though the application continues. It’s too bad, because the other still-active “console apps” have additional material to output to the screen.

I’d like to know if there is a way to make the Console stay open, even when one of the console exe appdomains exits, until I am good and ready for the console to truly be shutdown.

For the curious, my integration test-harness is executing from the VS unit-test framework (vstesthost.exe). I don’t think that detail is relevant to the question, but I’d like the console to stay open until my test is completed. Certainly the unit-testing framework should not rely on Console output for its value, but it helps when I’m debugging the tests. BTW, the fact that I’m running an integration test from a unit test framework is off-topic. 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T22:06:12+00:00Added an answer on May 15, 2026 at 10:06 pm

    Interesting approach… I wonder, even if you fix this, how you intend to deal with concurrency issues on std.out and std.err?

    I’ve done this before a few times to solve the whole issue:

    1. create the app domain
    2. create a MarshalByRef object in the new domain
    3. pass a custom TextWriter into the new domain
    4. replace the std.err and std.out values in .Net via Console.Set????(TextWriter)
    5. Execute one or more assemblies in the domain

    Hopefully you get the idea, your custom text writer can then synchronize the output as needed. I don’t know if the child app-domain would inherit the parent domain’s custom Console.Out/Error or not, you may try just doing that as well to simplify the code required.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an automated integration test harness and would like to streamline the logging
I have an integration test harness where I want to teardown and then re-instantiate
I have a Rails 3 integration test which tests my routes. It contains tests
I have several integration tests for various services that extend the following baseclass: @ContextConfiguration(locations=classpath:applicationContext-test.xml)
I have this first integration test for a tic tac toe game: [TestClass] public
We have a testbed scenario we are developing for an integration test. The idea
i have a input tag which is non editable, but some times i need
I'm trying to integration test my application with Spring TestContext framework. I have done
Let's say we have a continuous integration server. When I check in, the post-hook
I have a product idea that requires integration into the Microsoft Office suite. Are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.