Skip to content

dotnet test does not print output for .NET Framework tests for Microsoft.Bcl.Cryptography #116604

Open
@vcsjones

Description

@vcsjones

If you run dotnet test against Microsoft.Bcl.Cryptography, the .NET Framework tests will not print any output of the test execution.

Steps to reproduce on Windows:

  1. Check out main
  2. Do a build .\build.cmd -rc Release -s clr+libs
  3. Run .\dotnet.cmd test .\src\libraries\Microsoft.Bcl.Cryptography\tests\

Observe that it does run the .NET 10 tests, and the output for the building the tests for .NET Framework, but does not actually print the output for the test execution itself

Results File: E:\code\runtime\artifacts\bin\Microsoft.Bcl.Cryptography.Tests\Debug\net10.0\TestResults\vcsjones_KEVINJONES078C_2025-06-12_16_32_26.trx
Html test results file : E:\code\runtime\artifacts\bin\Microsoft.Bcl.Cryptography.Tests\Debug\net10.0\TestResults\TestResult_vcsjones_KEVINJONES078C_20250612_163227.html

Failed:     0, Passed:  1484, Skipped:    12, Total:  1496, Duration: 1 s - Microsoft.Bcl.Cryptography.Tests.dll (net10.0)
  Microsoft.Interop.SourceGeneration -> E:\code\runtime\artifacts\bin\Microsoft.Interop.SourceGeneration\Debug\netstandard2.0\Microsoft.Interop.SourceGeneration.dll
  DownlevelLibraryImportGenerator -> E:\code\runtime\artifacts\bin\DownlevelLibraryImportGenerator\Debug\netstandard2.0\Microsoft.Interop.LibraryImportGenerator.Downlevel.dll
  TestUtilities -> E:\code\runtime\artifacts\bin\TestUtilities\Debug\net481\TestUtilities.dll
  System.Formats.Asn1 -> E:\code\runtime\artifacts\bin\System.Formats.Asn1\ref\Debug\net462\System.Formats.Asn1.dll
  System.Formats.Asn1 -> E:\code\runtime\artifacts\bin\System.Formats.Asn1\Debug\net462\System.Formats.Asn1.dll
  Microsoft.Bcl.Cryptography -> E:\code\runtime\artifacts\bin\Microsoft.Bcl.Cryptography\Debug\net462\Microsoft.Bcl.Cryptography.dll
  System.Security.Cryptography.Pkcs -> E:\code\runtime\artifacts\bin\System.Security.Cryptography.Pkcs\ref\Debug\net462\System.Security.Cryptography.Pkcs.dll
  System.Security.Cryptography.Pkcs -> E:\code\runtime\artifacts\bin\System.Security.Cryptography.Pkcs\Debug\net462\System.Security.Cryptography.Pkcs.dll
  Microsoft.Bcl.Cryptography.Tests -> E:\code\runtime\artifacts\bin\Microsoft.Bcl.Cryptography.Tests\Debug\net481\Microsoft.Bcl.Cryptography.Tests.dll

Where is the text execution?

PS E:\code\runtime> 

It will print the output if you explicitly pass the framework like .\dotnet.cmd test .\src\libraries\Microsoft.Bcl.Cryptography\tests\ -f net481

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions