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

Remove extra space #5238

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Remove extra space #5238

wants to merge 3 commits into from

Conversation

nohwnd
Copy link
Member

@nohwnd nohwnd commented Mar 14, 2025

image

Looks like the code is there since forever, and would always add a single extra space before the first "at".

Fix #5152

@microsoft-github-policy-service microsoft-github-policy-service bot added the Area: MTP Belongs to the Microsoft.Testing.Platform core library label Mar 14, 2025
@nohwnd
Copy link
Member Author

nohwnd commented Mar 14, 2025

image

not sure why the single space ends up being much larger shift in the ansi code output.

this is before removing the append:

image

@nohwnd
Copy link
Member Author

nohwnd commented Mar 14, 2025

also fixes normal terminal (with --no-ansi)

@Youssef1313
Copy link
Member

Could you make a test with VSTest as well?

@nohwnd
Copy link
Member Author

nohwnd commented Mar 14, 2025

It does not fix vstest, but I can see the same problem there with nunit. (while of course nunit is fine in mtp)

@Youssef1313
Copy link
Member

It does not fix vstest

Not sure what do you mean? What is the behavior when using VSTest before and after the change. I was expecting VSTest to probably be having the correct spacing already, and gets broken with the change. That's the guess I have.

@nohwnd
Copy link
Member Author

nohwnd commented Mar 14, 2025

vstest output has incorrect spacing before and after the change, both for mstest and nunit.

@Youssef1313
Copy link
Member

Nice. That was unexpected to me 😄

@nohwnd
Copy link
Member Author

nohwnd commented Mar 14, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: MTP Belongs to the Microsoft.Testing.Platform core library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exception stack trace has first line incorrectly offset
2 participants