[go: nahoru, domu]

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

☂️ Improve Widget and Driver Tests sections #7795

Open
4 tasks
kentcb opened this issue Apr 9, 2018 · 5 comments
Open
4 tasks

☂️ Improve Widget and Driver Tests sections #7795

kentcb opened this issue Apr 9, 2018 · 5 comments
Labels
e3-weeks Effort: < 4 weeks from.flutter-sdk Reported via move from flutter/flutter meta.umbrella Collects multiple related issues p2-medium Necessary but not urgent concern. Resolve when possible. test.driver Relates to driver testing test.general Relates to unit, integration, perf testing test.widget Relates to widget testing

Comments

@kentcb
Copy link
Contributor
kentcb commented Apr 9, 2018

Per this discussion, it seems widget tests are under-documented in these ways:

  • unclear why UI appears small with black regions above and below it
  • unclear whether that behavior can be overridden or modified in any way
  • it was unclear to me that driver and widget tests were a different thing, and how they differ. That said, this documentation seems pretty good. Perhaps I missed that when I was trying this stuff out.

Ultimately, what I want to do is use automate the execution of widget tests on my CI to take snapshots of the app at various points. This way, I can set up a feed for my test team to monitor to see if anything visual breaks during the development of an application. Of course, I will need to choose a resolution at which to take the snapshots, but I am unclear on how I can achieve this.


This should include:

@eseidelGoogle
Copy link
Contributor

This is a @yjbanov or @Hixie question. Thanks!

@Hixie
Copy link
Contributor
Hixie commented Apr 9, 2018

Where did you look for this information? (Not sure where to put the answers.)

@kentcb
Copy link
Contributor Author
kentcb commented Apr 9, 2018

I think I started here, but I'd swear those docs have been improved recently, because they certainly looked more fleshed out than I recall. However, the commit history says otherwise, so I guess I just didn't take it all in the first time. Regardless, I still think clarity is required around widget tests/black area.

@Hixie
Copy link
Contributor
Hixie commented Apr 12, 2018

We can definitely improve them!

@zoechi zoechi added the t.dev-tools Relates to DevTools and CLI label Feb 22, 2019
@jonahwilliams jonahwilliams removed the t.dev-tools Relates to DevTools and CLI label Jan 10, 2020
@kf6gpe kf6gpe added the P4 label Dec 9, 2020
@atsansone atsansone transferred this issue from flutter/flutter Nov 11, 2022
@atsansone atsansone added from.flutter-sdk Reported via move from flutter/flutter and removed d: website - content labels Nov 11, 2022
@atsansone atsansone changed the title Widget/Driver Tests Under-documented Improve Widget and Driver Tests sections Apr 20, 2023
@atsansone atsansone added test.general Relates to unit, integration, perf testing meta.umbrella Collects multiple related issues p2-medium Necessary but not urgent concern. Resolve when possible. e3-weeks Effort: < 4 weeks test.widget Relates to widget testing test.driver Relates to driver testing and removed P4 labels May 31, 2023
@atsansone atsansone changed the title Improve Widget and Driver Tests sections ☂️ Improve Widget and Driver Tests sections Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e3-weeks Effort: < 4 weeks from.flutter-sdk Reported via move from flutter/flutter meta.umbrella Collects multiple related issues p2-medium Necessary but not urgent concern. Resolve when possible. test.driver Relates to driver testing test.general Relates to unit, integration, perf testing test.widget Relates to widget testing
Projects
None yet
Development

No branches or pull requests

9 participants