dart-lang / webdev

A CLI for Dart web development.
https://pub.dev/packages/webdev
212 stars 75 forks source link

[DWDS] Restructure tests and use `package:mockito` to generate mocks #1643

Open elliette opened 2 years ago

elliette commented 2 years ago

Background context:

Currently the majority of tests in DWDS are integration tests using chromedriver. We have a few unit tests as well, some of which implement their own fakes (eg, in metadata_test.dart), others of which use the fakes from fakes.dart.

Suggested improvements:

bkonyi commented 1 week ago

After talking with @elliette, it doesn't seem like we've made any progress on this issue. We should consider whether or not we actually want to use package:mockito since it involves a lot of code generation steps since Dart 3.0.