Skip to content

[tizen_app_control] Update integration tests - #1068

Merged
seungsoo47 merged 2 commits into
flutter-tizen:masterfrom
seungsoo47:tizen_app_control-update-integration-tests
Aug 4, 2026
Merged

[tizen_app_control] Update integration tests#1068
seungsoo47 merged 2 commits into
flutter-tizen:masterfrom
seungsoo47:tizen_app_control-update-integration-tests

Conversation

@seungsoo47

Copy link
Copy Markdown
Contributor
  • Relax the 'Can find matching applications' assertion from isNotEmpty to greaterThanOrEqualTo(0): app_control_foreach_app_matched returns APP_CONTROL_ERROR_NONE with an empty list when no apps match, so an empty result is not an error.
  • Add 'Can send and receive request with uri and mime': verifies that uri and mime fields are correctly transmitted and received (the existing test only covered the null case).
  • Strengthen the String list extra data assertion in 'Omit invalid extra data' to check exact values instead of just isNotEmpty.

Validated on RPI4 and TV emulator (T-samsung-10.0-x86_64): 7 tests, all pass.

@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 the integration tests for tizen_app_control by relaxing the matched app IDs assertion, adding a test for URI and MIME round-trips, and verifying exact string list extra data. Feedback highlights a tautological assertion on list length that should be replaced with a type check, and a potential race condition in the new test where the broadcast stream should be listened to before triggering the launch request.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread packages/tizen_app_control/example/integration_test/tizen_app_control_test.dart Outdated
Comment thread packages/tizen_app_control/CHANGELOG.md Outdated
* Update minimum Flutter and Dart version to 3.13 and 3.1.
* Update code format.
* Add YouTube app launch to the example.
* Update integration tests: relax the `getMatchedAppIds` assertion to accept zero or more results, add a test for `uri`/`mime` round-trip, and verify the exact values of `List<String>` extra data.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
* Update integration tests: relax the `getMatchedAppIds` assertion to accept zero or more results, add a test for `uri`/`mime` round-trip, and verify the exact values of `List<String>` extra data.
* Update integration tests.

seungsoo47 and others added 2 commits August 4, 2026 16:13
- Relax the 'Can find matching applications' assertion from isNotEmpty to
  greaterThanOrEqualTo(0): app_control_foreach_app_matched returns
  APP_CONTROL_ERROR_NONE with an empty list when no apps match, so an
  empty result is not an error.
- Add 'Can send and receive request with uri and mime': verifies that uri
  and mime fields are correctly transmitted and received (the existing
  test only covered the null case).
- Strengthen the String list extra data assertion in 'Omit invalid extra
  data' to check exact values instead of just isNotEmpty.

Validated on RPI4 and TV emulator (T-samsung-10.0-x86_64): 7 tests, all pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@seungsoo47
seungsoo47 force-pushed the tizen_app_control-update-integration-tests branch from bb56e21 to fea3a31 Compare August 4, 2026 07:14
@seungsoo47
seungsoo47 merged commit 16ea17a into flutter-tizen:master Aug 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants