Skip to content

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

Merged
jwoo-msft merged 3 commits into
mainfrom
jwoo/ios-pipeline-update-1
Dec 3, 2021
Merged

[iOS] Added error messages in string for Unit Tests#6793
jwoo-msft merged 3 commits into
mainfrom
jwoo/ios-pipeline-update-1

Conversation

@jwoo-msft

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

Copy link
Copy Markdown
Member

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

Comment thread source/ios/AdaptiveCards/AdaptiveCards/AdaptiveCards/ACOAdaptiveCard.mm Outdated

@almedina-ms almedina-ms left a comment

Copy link
Copy Markdown
Contributor

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