Git Product home page Git Product logo

Comments (8)

safern avatar safern commented on May 26, 2024

Maybe throwinfg XunitException(message) with the message being the actual exception?

from arcade.

danmoseley avatar danmoseley commented on May 26, 2024

@safern that would terminate the test but tests can expect exceptions from the remote process (https://github.com/dotnet/corefx/blob/master/src/System.Runtime.Extensions/tests/System/AppDomainTests.cs#L94) so they wouldn't want that

I think what needs to be done is

  1. capture the console output from the spawned process
  2. write it to XUnit.ITestOutputHelper so it goes to the XML log (generally we don't use this interface because we want it to write ot the console also, but in this case we are already getting that)
  3. rely on the test setting RemoteInvokeOptions.CheckExitCode = true or otherwise determining by itself that the child process died unexpectedly.

from arcade.

ViktorHofer avatar ViktorHofer commented on May 26, 2024

I'm not sure how feasible this is with the official xunit runner.

from arcade.

alexperovich avatar alexperovich commented on May 26, 2024

Is this anything more than modifying RemoteExecutor.Invoke here (https://github.com/dotnet/arcade/blob/master/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutor/RemoteExecutor.cs#L247) to accept an ITestOutputHelper thing and capture the StdOut/StdErr from the process into it?

from arcade.

danmoseley avatar danmoseley commented on May 26, 2024

@ViktorHofer ?

from arcade.

ViktorHofer avatar ViktorHofer commented on May 26, 2024

Microsoft.DotNet.RemoteExecutor is currently only tied to xunit in a few places to do an assert. Ideally we would not add more dependency and instead get rid of its dependency so that it can be used outside of xunit.

from arcade.

markwilkie avatar markwilkie commented on May 26, 2024

This issue is over a year old. Is there something actionable here that says we should keep it open?

from arcade.

markwilkie avatar markwilkie commented on May 26, 2024

Closing given no activity or responses.

from arcade.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.