dotnet test
do not respect MSBUILDTERMINALLOGGER='auto' env variable.
#38654
Labels
dotnet test
do not respect MSBUILDTERMINALLOGGER='auto' env variable.
#38654
Describe the bug
The automatic discovery whenever the new Terminal Logger can be used seems to have different behaviour between
dotnet test
anddotnet build
.To Reproduce
Create a new .Net 8 project with
dotnet new console
Set the logger type to 'auto'
$env:MSBUILDTERMINALLOGGER='auto'
Build it with
dotnet build
Run tests with
dotnet test
(should run build as well)Actual behavour:
When running
dotnet build
the new logger is used:However when running
dotnet test
the old logger is used:The output is different when the new logger is enforced using the
on
option instead ofauto
:Expected behavour:
Since
dotnet build
detects that the new Terminal Logger can be used,dotnet test
should also correcly detect it and use new logger.I'd expect to see a new output like on the snippet below:
Further technical details
The text was updated successfully, but these errors were encountered: