Skip to content

Make it easier to write integration tests #38

Open
@teohhanhui

Description

Currently, when we need a DocHandle in a third-party library / app's integration tests, we'd need to spin up an entire thread with Repo::run, while also requiring us to provide our own Storage implementation.

Perhaps test mocks could be provided, similar to tokio_test::io? (Probably not in the same way, as that is trait-based.)

For another reference, check out tonic's mock example.

I'm sure neither of those patterns are directly applicable here, but it's something that could be improved here?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions