Skip to content

[camera_avfoundation] Tests backfilling - part 2#8796

Merged
auto-submit[bot] merged 2 commits into
flutter:mainfrom
leancodepl:feature/camera-tests-backfilling-part2
Mar 10, 2025
Merged

[camera_avfoundation] Tests backfilling - part 2#8796
auto-submit[bot] merged 2 commits into
flutter:mainfrom
leancodepl:feature/camera-tests-backfilling-part2

Conversation

@RobertOdrowaz

Copy link
Copy Markdown
Contributor

Backfills tests for the CameraPlugin class as part of flutter/flutter#119109

This PR adds tests for methods of CameraPlugin that only delegate to a FLTCam instance without any (or almost any for startVideoRecording) logic. In most circumstances, I would argue that those methods are so trivial that there is no point in testing them but for a plugin rewrite I believe those tests provide a little bit of value. The tests are also appropriately simple to write.

Pre-launch Checklist

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

@RobertOdrowaz RobertOdrowaz added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 10, 2025
@auto-submit auto-submit Bot merged commit 464cea5 into flutter:main Mar 10, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 10, 2025
github-merge-queue Bot pushed a commit to flutter/flutter that referenced this pull request Mar 10, 2025
flutter/packages@4c5a7ed...464cea5

2025-03-10 robert.odrowaz@leancode.pl [camera_avfoundation] Tests
backfilling - part 2 (flutter/packages#8796)
2025-03-08 neilself@gmail.com [google_sign_in] Add Android account name
field as optional (flutter/packages#8573)
2025-03-07 engine-flutter-autoroll@skia.org Roll Flutter from
321fbc0 to 6b93cf9 (18 revisions) (flutter/packages#8817)
2025-03-07 engine-flutter-autoroll@skia.org Roll Flutter (stable) from
68415ad to 09de023 (1139 revisions) (flutter/packages#8813)
2025-03-07 veronika@resolutionapp.co.nz [google_maps_flutter_web] set
icon anchor for markers (flutter/packages#8077)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
androidseb pushed a commit to androidseb/packages that referenced this pull request Jun 8, 2025
Backfills tests for the CameraPlugin class as part of flutter/flutter#119109

This PR adds tests for methods of `CameraPlugin` that only delegate to a `FLTCam` instance without any (or almost any for `startVideoRecording`) logic. In most circumstances, I would argue that those methods are so trivial that there is no point in testing them but for a plugin rewrite I believe those tests provide a little bit of value. The tests are also appropriately simple to write.
FMorschel pushed a commit to FMorschel/packages that referenced this pull request Jun 9, 2025
Backfills tests for the CameraPlugin class as part of flutter/flutter#119109

This PR adds tests for methods of `CameraPlugin` that only delegate to a `FLTCam` instance without any (or almost any for `startVideoRecording`) logic. In most circumstances, I would argue that those methods are so trivial that there is no point in testing them but for a plugin rewrite I believe those tests provide a little bit of value. The tests are also appropriately simple to write.
romanejaquez pushed a commit to romanejaquez/flutter that referenced this pull request Aug 14, 2025
flutter/packages@4c5a7ed...464cea5

2025-03-10 robert.odrowaz@leancode.pl [camera_avfoundation] Tests
backfilling - part 2 (flutter/packages#8796)
2025-03-08 neilself@gmail.com [google_sign_in] Add Android account name
field as optional (flutter/packages#8573)
2025-03-07 engine-flutter-autoroll@skia.org Roll Flutter from
321fbc0 to 6b93cf9 (18 revisions) (flutter/packages#8817)
2025-03-07 engine-flutter-autoroll@skia.org Roll Flutter (stable) from
68415ad to 09de023 (1139 revisions) (flutter/packages#8813)
2025-03-07 veronika@resolutionapp.co.nz [google_maps_flutter_web] set
icon anchor for markers (flutter/packages#8077)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
Backfills tests for the CameraPlugin class as part of flutter/flutter#119109

This PR adds tests for methods of `CameraPlugin` that only delegate to a `FLTCam` instance without any (or almost any for `startVideoRecording`) logic. In most circumstances, I would argue that those methods are so trivial that there is no point in testing them but for a plugin rewrite I believe those tests provide a little bit of value. The tests are also appropriately simple to write.
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
Backfills tests for the CameraPlugin class as part of flutter/flutter#119109

This PR adds tests for methods of `CameraPlugin` that only delegate to a `FLTCam` instance without any (or almost any for `startVideoRecording`) logic. In most circumstances, I would argue that those methods are so trivial that there is no point in testing them but for a plugin rewrite I believe those tests provide a little bit of value. The tests are also appropriately simple to write.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App p: camera platform-ios platform-macos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants