-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No way to determine the runtime used with dotnet test #3792
Comments
.NET Core project is built as an exe without apphost to have the correct runtimeconfig.json to use during the test run( |
In the log(
|
The issue isn't that the test host isn't starting, the issue is that we don't know which runtime the test host is using. That makes it very hard to understand why tests fail in one environment but pass in another. One variable to consider is "which runtime is being used in each instance?". There is no reasonable way to answer this question that we're aware of. |
Ok I've misunderstood, dotnet test can run host for netcore/netfx and depends also on some switch( |
@jaredpar we could add on top of the host log the |
Description
Our repository has run into a situation where we have tests failing in one environment but not the other. This happens on occasion but in this specific case it's failing locally but passing in CI. There is some suspicion that it's because the environments are picking different runtimes when invoking
dotnet test
.The problem is we have no way of knowing what runtime is being used when
dotnet test
is invoked. It's not listed in the command line, logs, etc ... It's left up to the developer to reason this out and we're failing to do so.Expected behavior
There should be some mechanism that lets us know what runtime actually executed our tests.
Actual behavior
There is no such mechanism. The only options available are
%COREHOST_TRACE%
. This produces a ~45,000 line file with multiple host activations that we have to trace through to find the runtime.None of these are viable for CI environments
The text was updated successfully, but these errors were encountered: