Skip to content

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

Open
@elliette

Description

@elliette

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 by package: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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions