You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unsuppressable overwrite warning when using <VSTestLogger> MSBuild property which confuses users #5132
In order to have the developer's local build and CI build as closely aligned as possible, I set the <VSTestLogger> property in a Directory.Build.targets file like this
<Project>
<PropertyGroupCondition=" '$(IsTestProject)' == 'true' ">
<!-- Enable test logging to TRX files and place them in the artifacts directory -->
<VSTestLogger>trx%3bLogFileName=$(MSBuildProjectName).trx</VSTestLogger>
</PropertyGroup>
</Project>
In CI this is fine because build and test generally only happens once. However, when running locally, subsequent test runs show this warning:
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
WARNING: Overwriting results file: C:\path\to/TestResults/net8.0\Moq.Analyzers.Test.trx
Results File: C:\path\to/TestResults/net8.0\Moq.Analyzers.Test.trx
In this scenario, overwriting the test results file is expected. The warning is raised @
changed the title [-]Unsuppressable overwrite warning when using <VSTestLogger> MSBuild property confuses users[/-][+]Unsuppressable overwrite warning when using <VSTestLogger> MSBuild property which confuses users[/+]on Jul 2, 2024
Activity
[-]Unsuppressable overwrite warning when using <VSTestLogger> MSBuild property confuses users[/-][+]Unsuppressable overwrite warning when using <VSTestLogger> MSBuild property which confuses users[/+]nohwnd commentedon Jul 12, 2024
The new option will go into 17.12.
Add ICS regression tests for 10 highest-value untested bug fixes
Add regression tests for 8 previously untested bug fixes
Add regression tests for 8 previously untested bug fixes
Add regression tests for 8 previously untested bug fixes