[web] Improve dev/bots/service_worker_test #106225
Labels
a: tests
"flutter test", flutter_test, or one of our tests
c: tech-debt
Technical debt, code quality, testing, etc.
P3
Issues that are less important to the Flutter project
platform-web
Web applications specifically
team-web
Owned by Web platform team
triaged-web
Triaged by Web platform team
dev/bots/service_worker_test.dart
used to be a small file that focused on testing if the service worker pre-cache and cache behavior worked as expected.However in the last few months, more features have been tested using the same infrastructure, and the file is getting a little bit too big and hard to maintain.
A couple of bits that stand out:
Code:
Proposal
Audit all the different usages of dev/integration_tests/web/lib/*.dart, and see if there are more integration tests that build those apps... and how they do it. Maybe service_worker_test.dart is not the only file that could benefit from this refactor (?)
Tweak dev/bots/service_worker_test.dart to reuse code, start web apps more properly (after #78254), and in general, show it some TLC.
The text was updated successfully, but these errors were encountered: