Open
Description
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:
- separate directories for integration and unit tests
- switch from the fakes in
fakes.dart
to mocks generated bypackage:mockito
- move fakes from other test files into
fakes.dart
so that they can easily be found - increase number of unit tests
- add documentation / general guidelines on writing and running tests