Skip to content

Tests are highly interdependent #740

Open

Description

Description

One of the widely accepted rules of testing is that tests should be as independent as possible, mocking and stubbing all of their ties with other modules. This is not the case in this repo's tests.

  • The API tests depend on the ingestion server working properly
  • The API tests write data to the real database.
  • The analytics tests use the same database to generate reports and depend on API tests passing to pass.

Expectation

Tests should pass or fail based on their own problems, not issues from other tests that they depend on. Databases should not be shared between tests, all DB needs should be stubbed by factories, fixtures or mocks.

Resolution

  • 🙋 I would be interested in resolving this bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions