Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[google_maps_web] Skip a smaller subset of web tests #7087

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

bparrishMines
Copy link
Contributor

@bparrishMines bparrishMines commented Jul 9, 2024

This stops skipping all of the web google_maps_flutter tests and only skips the one of the tests on for the platform implementation and all the tests for the app-facing package. I'll continue working on a permanent fix for flutter/flutter#145149.

Pre-launch Checklist

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

@bparrishMines bparrishMines changed the title undo web int test skip [google_maps_web] Skip a smaller subset of web tests Jul 17, 2024
@bparrishMines bparrishMines marked this pull request as ready for review July 17, 2024 16:51
@@ -15,6 16,12 @@ import 'src/tiles_inspector.dart' as tiles_inspector;
void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();

// TODO(bparrishMines): These tests are failing on web due to an error being
// thrown after completion. See https://github.com/flutter/flutter/issues/145149
if (isWeb) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I know it'll be a lot more code, but I think it would be better to do something like:

// TODO(bparrishMines): Tests are failing on web due to an error being
// thrown after completion. See https://github.com/flutter/flutter/issues/145149
const bool _skipOnWeb = isWeb;

[ Add skip: _skipOnWeb to every test ]

That way they it'll be obvious both when looking at the test, and from the test run output, that web is skipping tests, vs them being silently skipped in an unusual place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants