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

[iOS] Added error messages in string for Unit Tests #6793

Merged
merged 3 commits into from
Dec 3, 2021

Conversation

jwoo-msft
Copy link
Member

@jwoo-msft jwoo-msft commented Nov 30, 2021

Related Issue

Fixed #6792

Description

When the unit test is failed while parsing, current tests don't tell which file failed and why. It requires mac & XCode to debug card issues. By adding the file name, and the reason in the string, PR validation failure can be diagnosed by
anyone who raised PR without needing mac & XCode.

NSLog is replaced with printf as NSLog can't output to stderr or stdout, and usage of prinf is recommended.

Reference

How Verified

How you verified the fix, including one or all of the following:

  1. Tested with invalid test cards
Microsoft Reviewers: Open in CodeFlow

Copy link
Contributor

@almedina-ms almedina-ms left a comment

Choose a reason for hiding this comment

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

:shipit:

@jwoo-msft jwoo-msft enabled auto-merge (squash) December 3, 2021 00:26
@jwoo-msft jwoo-msft merged commit aed271d into main Dec 3, 2021
@jwoo-msft jwoo-msft deleted the jwoo/ios-pipeline-update-1 branch December 3, 2021 01:27
michaelfarnsworth pushed a commit to michaelfarnsworth/AdaptiveCards that referenced this pull request Nov 10, 2022
* [iOS] Error Messages in String for Unit Tests

* [ios] fixed typo
rankush pushed a commit to rankush/AdaptiveCards that referenced this pull request May 8, 2024
* [iOS] Error Messages in String for Unit Tests

* [ios] fixed typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add detailed unit test error messages when parse failed.
4 participants