Skip to content

Hide flutter test --platform#65984

Merged
fluttergithubbot merged 1 commit into
flutter:masterfrom
yjbanov:hide-test-platform
Sep 17, 2020
Merged

Hide flutter test --platform#65984
fluttergithubbot merged 1 commit into
flutter:masterfrom
yjbanov:hide-test-platform

Conversation

@yjbanov

@yjbanov yjbanov commented Sep 17, 2020

Copy link
Copy Markdown
Contributor

Description

We do not support flutter test --platform. It is only there for us to test the framework itself. Developers should use plain flutter test, or, if they need access to browser-specific functionality/behavior, package:integration_test. flutter test is, by design, a completely mocked out environment (not Android, not iOS, and it should not be Web either).

@flutter-dashboard flutter-dashboard Bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Sep 17, 2020
@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

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

LGTM,

Thanks @yjbanov !

@fluttergithubbot
fluttergithubbot merged commit fde120d into flutter:master Sep 17, 2020
goderbauer pushed a commit to goderbauer/flutter that referenced this pull request Sep 18, 2020
pull Bot pushed a commit to safarmer/flutter that referenced this pull request Jun 29, 2026
Update `flutter test --platform=chrome ...` to use the new DDC module
system.

* Updates bootstrap generation in test runner to load the modules needed
to run the test.
* Uses `org-dartlang-app:///` URIs (with three slashes) more
consistently in the DDC logic.

From the PR history flutter#65984 and
the hidden nature of the
`--platform=chrome` CLI flag I am assuming this codepath is unsupported
and only used for
flutter framework tests.

Fixes: flutter#187797
Issue: flutter#142060

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [AI contribution guidelines] and understand my
responsibilities, or I am not using AI tools.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[AI contribution guidelines]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#ai-contribution-guidelines
[Tree Hygiene]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md
[test-exempt]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes
[Discord]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md
[Data Driven Fixes]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants