Comments (8)
Maybe throwinfg XunitException(message) with the message being the actual exception?
from arcade.
@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
- capture the console output from the spawned process
- 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) - rely on the test setting
RemoteInvokeOptions.CheckExitCode = true
or otherwise determining by itself that the child process died unexpectedly.
from arcade.
I'm not sure how feasible this is with the official xunit runner.
from arcade.
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.
from arcade.
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.
This issue is over a year old. Is there something actionable here that says we should keep it open?
from arcade.
Closing given no activity or responses.
from arcade.
Related Issues (20)
- NuGet Validation fails when a pipeline doesn't produce any nuget packages
- Delete promote-build.yml in release branches HOT 3
- Move publishing back to netcore1espool-publishing-internal for the 1ES official templates HOT 1
- [1ES Template] Migrate dotnet-migrate-packages HOT 2
- [1ES Template] Migrate Core mirror HOT 1
- Update arcade-validation to use windows 11 helix queues over windows 10. HOT 2
- Updates to the docker eol report HOT 1
- Allow building with newer clang versions without changing init-compilers.sh. HOT 1
- RemoteExecutor field marshaling failure when in Live Unit Testing HOT 1
- Delete Validate Publishing in arcade-validation HOT 2
- "5 new packages used not in baseline!" after pulling the latest arcade from .Net 7 Eng channel HOT 23
- [Build Analysis] GitHub Throttling issues
- Update MicroBuildSigningPlugin to version 4 HOT 2
- Fix up devdiv pool usage in official arcade templates HOT 7
- Remove `-pt` image use HOT 2
- CA2022 error in src/SignCheck/Microsoft.SignCheck/Verification/LZMAUtils.cs
- Tools.csproj makes it hard to use central package management HOT 3
- Determine why SB break wasn't caught in arcade-validation
- Change the default dotnet installation location from `.dotnet/` to `.dotnet/$hostRid/` HOT 1
- Arcade incorrectly determines NuGet cache location HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arcade.