Skip to content

Rename tests to correspond to use case requirements rather than the methods tested. #41

Description

@BjoernKW

Currently, most of the test methods in the sample solution are named like the methods they test, e.g., we have a test method getAllBooks() for testing a controller method getAllBooks().

Something more in line with user requirements, such as endpointShouldReturnAListOfBooks would be more explicit and contribute to a more test-driven approach as well as more explicitly document the desired behaviour.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    taskAnything related to course taskstestingAnything test-related

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions