dotnet / dotnet/runtime

`dotnet test` no longer has test output for libraries projects

Open
#133,731 2 comments 0 reactions 0 assignees View on GitHub
area-Infrastructure-libraries untriaged
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

Steps to reproduce:

1. Build the runtime with `./build.sh -rc release -s clr+libs`
2. Attempt to run the tests for a test project from the command line: `./dotnet.sh test src/libraries/System.Security.Cryptography/tests`

## Behavior

MSBuild produces build output, but there is no output from Xunit.

Image

## Expected Behavior

Xunit test results are printed

## Workarounds

`./dotnet.sh build /t:test` is not affected. `./dotnet.sh test` is.

Contributor guide

Open the contributing guide

Research direction

Reproduce with `./build.sh -rc release -s clr+libs`, then run `./dotnet.sh test src/libraries/System.Security.Cryptography/tests` and compare it with `./dotnet.sh build /t:test`. Trace the `dotnet test` path for library test projects and verify that Xunit test results are printed while the unaffected workaround continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.