Skip to content
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

dotnet test LogFileName break change in 2.2.300 #2113

Closed
livarcocc opened this issue Aug 5, 2019 · 1 comment
Closed

dotnet test LogFileName break change in 2.2.300 #2113

livarcocc opened this issue Aug 5, 2019 · 1 comment
Assignees
Labels

Comments

@livarcocc
Copy link

From @elvisFabian on Friday, August 2, 2019 9:48:27 PM

The last docker image mcr.microsoft.com/dotnet/core/sdk:2.2 upgrade DOTNET_SDK_VERSION to 2.2.300

Steps to reproduce

  • Create multiples test projects
  • run: dotnet test --logger "trx;LogFileName=TestResults.trx"

Expected behavior

Create a unique file name per test project

Actual behavior

Using DOTNET_SDK_VERSION=2.2.202

Results File: TestResults_2019-08-02_17-34-32-725.trx
Results File: TestResults_2019-08-02_17-34-36-381.trx
Results File: TestResults_2019-08-02_17-34-39-323.trx

Using DOTNET_SDK_VERSION=2.2.300

WARNING: Overwriting results file: TestResults.trx
result/TestResults.trx

WARNING: Overwriting results file: TestResults.trx
Results File: TestResults.trx

WARNING: Overwriting results file: TestResults.trx
Results File: TestResults.trx

Workaround

Fix the tag of docker image to FROM mcr.microsoft.com/dotnet/core/sdk:2.2.200

Copied from original issue: dotnet/cli#12124

@ShreyasRmsft ShreyasRmsft self-assigned this Aug 6, 2019
@ShreyasRmsft
Copy link
Member

@livarcocc we reverted the change where we were appending suffixes to each trx file and not fully honoring the LogFileName=TestResults.trx param based on feedback.

We are working on a solution to stop the trx getting overriden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants