Skip to content

Conversation

@sealesj
Copy link
Contributor

@sealesj sealesj commented Apr 3, 2024

Refactor tool tests suite in order to reduce testing logic in test.dart and allow for later implementing package:test onto the existing tool tests tests

Part of #145482

Pre-launch Checklist

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

@sealesj sealesj added the team-infra Owned by Infrastructure team label Apr 3, 2024
@sealesj sealesj self-assigned this Apr 3, 2024
@sealesj
Copy link
Contributor Author

sealesj commented Apr 11, 2024

Holding this as a draft since it relies on the refactoring of runDartTest addressed by #146592

@sealesj sealesj marked this pull request as ready for review April 22, 2024 19:46
Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

@sealesj sealesj added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 23, 2024
@auto-submit
Copy link
Contributor

auto-submit bot commented Apr 23, 2024

auto label is removed for flutter/flutter/146217, due to - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Apr 23, 2024

import '../utils.dart';

Future<void> toolTestsRunner() async {
Copy link
Contributor

Choose a reason for hiding this comment

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

Was there a particular reason the tool integration tests are not here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can create a suite for all those tool tests to be included if that would make more sense

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure what that means. How much work does "creating a suite" entail? Although I suppose this was in its own function in test.dart. I suspect that was accidental, rather than intentional.

From a purely organizational perspective, I would weakly prefer that all the test functions that invoke test directories under //flutter/packages/flutter_tools/test be grouped together in the same library (dart's terminology for a file). But if that's a lot of work to implement I'm open to discussion.

@goderbauer goderbauer closed this Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-infra Owned by Infrastructure team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants