-
Notifications
You must be signed in to change notification settings - Fork 134
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
link to string diff in test report if assertEquals of string fails #1070
Comments
Hi @drummer3333, do you mean something like the SCM diff view? |
Yes, like that. |
I really miss this feature, too! In the meantime I'm using the extension "Partial Diff" and Copy&Paste the result and than do the diff. |
VS Code now is designing a new set of testing API, and having the capability to show this diff view. See the point 3 in this comment: microsoft/vscode#107467 (comment) So far, from my understanding, different assertion libs have their own format to show expected-actual message. Then I need to parse them according to the format and filling the related fields. |
@jdneo can you point me to the new api (documentation) that shows the diff ? It is not clear for me what is the new api. |
If you are looking for the vscode extension api for testing, you can find it here: https://github.com/microsoft/vscode/blob/d8af24e15daeb1ad5bd0ee4858852e60ea545c66/src/vscode-dts/vscode.d.ts#L18193 |
if assertEquals or similar fails the output of the test is somthing like:
A few of our tests export format a structure as a structured String and test this equal to a predefined String. So any diffence in structure can be seen in the Testresults.
I'm comming from Eclipse and there you get a nice diff view for such Failed Tests which makes it ease to see the failures.
Please add a link in the Test View so
expected
andvalue
can be open in the standrard VSCode Diff View.The text was updated successfully, but these errors were encountered: