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

#8022 - Add explanation for test file location #8031

Conversation

JaredEzz
Copy link

@JaredEzz JaredEzz commented Jan 3, 2023

Description of what this PR is changing or adding, and why: The introduction for widget testing should explain where the test file should be created as the introduction for unit testing does. See https://docs.flutter.dev/cookbook/testing/unit/introduction#2-create-a-test-file

Issues fixed by this PR (if any): Fixes #8022

Presubmit checklist

@@ -122,7 +145,7 @@ The `pumpWidget` method builds and renders the provided widget.
Create a `MyWidget` instance that displays "T" as the title
and "M" as the message.

<?code-excerpt "test/main_step4_test.dart (main)"?>
<?code-excerpt "test/my_widget_test.dart (main)"?>
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 curious why this change was made

Copy link
Author

Choose a reason for hiding this comment

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

I'm not entirely sure how these file names are used, but if they're visible to the reader, I wanted it to be clear where the code in the excerpt would be located

Copy link
Contributor

@sfshaza2 sfshaza2 left a comment

Choose a reason for hiding this comment

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

Hi @JaredEzz! We are freezing the website by end of day today. I can't land this PR because the build is failing. So, for now, I'm going to close it. Please feel free to re-open it once the website is unfrozen, but you must fix the build before it can land. Thx!

@sfshaza2 sfshaza2 closed this Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explain where test file should be stored on 'An introduction to widget testing' page
3 participants