Skip to content

[iOS] Make it easier to run unit tests from CLI#184617

Merged
auto-submit[bot] merged 2 commits into
flutter:masterfrom
loic-sharma:improve_ios_run_test_errors
Apr 24, 2026
Merged

[iOS] Make it easier to run unit tests from CLI#184617
auto-submit[bot] merged 2 commits into
flutter:masterfrom
loic-sharma:improve_ios_run_test_errors

Conversation

@loic-sharma

Copy link
Copy Markdown
Member

You can use run_tests.py to run iOS unit tests from the command line. This script assumes you built the ios_debug_sim_unopt variant. This improves the error messages if you built a different variant, like ios_debug_sim_unopt_arm64.

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

@loic-sharma loic-sharma requested a review from a team April 4, 2026 21:50
@github-actions github-actions Bot added the engine flutter/engine related. See also e: labels. label Apr 4, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates error messages in engine/src/flutter/testing/run_tests.py to provide clearer instructions for build failures. The changes include formatting improvements to the error strings and adjusting the assertion in the main function to adhere to line length guidelines. I recommend simplifying the construction of the final_message string to improve readability and applying the suggested line break for the assertion in the main function to comply with the 80-character limit.

Comment thread engine/src/flutter/testing/run_tests.py
Comment thread engine/src/flutter/testing/run_tests.py Outdated
hellohuanlin
hellohuanlin previously approved these changes Apr 5, 2026

@hellohuanlin hellohuanlin 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.

Gemini's suggestion seems to be reasonable.

@loic-sharma loic-sharma force-pushed the improve_ios_run_test_errors branch from 4155f7b to 9d864a4 Compare April 6, 2026 20:41
@github-actions github-actions Bot removed the CICD Run CI/CD label Apr 6, 2026
@loic-sharma loic-sharma added the CICD Run CI/CD label Apr 6, 2026
@LouiseHsu

Copy link
Copy Markdown
Contributor

looks like you got your review but im just here to say YESSSSSSS

@loic-sharma loic-sharma force-pushed the improve_ios_run_test_errors branch from 9d864a4 to 903307c Compare April 7, 2026 15:59
@github-actions github-actions Bot removed the CICD Run CI/CD label Apr 7, 2026
@loic-sharma loic-sharma force-pushed the improve_ios_run_test_errors branch 3 times, most recently from 11885a7 to 0acdf11 Compare April 14, 2026 23:59
@loic-sharma loic-sharma added the CICD Run CI/CD label Apr 22, 2026
@loic-sharma loic-sharma force-pushed the improve_ios_run_test_errors branch from 0acdf11 to ae41755 Compare April 23, 2026 20:06
@github-actions github-actions Bot removed the CICD Run CI/CD label Apr 23, 2026
@loic-sharma loic-sharma added the CICD Run CI/CD label Apr 23, 2026
@loic-sharma

loic-sharma commented Apr 23, 2026

Copy link
Copy Markdown
Member Author

Holy moly, google test please have mercy 😭😭😭😭

@loic-sharma loic-sharma added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 24, 2026
@auto-submit auto-submit Bot added this pull request to the merge queue Apr 24, 2026
Merged via the queue into flutter:master with commit 22f53a4 Apr 24, 2026
198 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD engine flutter/engine related. See also e: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants