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

Overwrite trx when file name is explicitly provided #4654

Merged
merged 6 commits into from
Jan 15, 2025

Conversation

Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Jan 15, 2025

Fixes #4561

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/Platform/Microsoft.Testing.Extensions.TrxReport/TrxReportEngine.cs:209

  • [nitpick] The warning message 'Warning: Trx file '{finalFileName}' already exists and is overwritten.' could be more informative. Consider rephrasing to 'Warning: The TRX file '{finalFileName}' already existed and was overwritten.'
return isFileNameExplicitlyProvided && _fileSystem.Exists(finalFileName) ? (finalFileName, $"Warning: Trx file '{finalFileName}' already exists and is overwritten.") : (finalFileName, null);
Copy link
Contributor

@MarcoRossignoli MarcoRossignoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@Evangelink Evangelink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we assert the expected message somewhere?

@Evangelink Evangelink enabled auto-merge (squash) January 15, 2025 16:44
@Evangelink Evangelink merged commit aa252c0 into microsoft:main Jan 15, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specifying a TRX report filename that already exists causes the Microsoft Testing Platform to hang and crash
3 participants