Skip to content

Add integration tests for devs #3

Open
@ewienik

Description

@ewienik

tl;dr

feature flag: integ_tests

There should be integration tests for the development. Integration test should use std test infrastructure from Rust. This issue will be a poc for feature development methodology using compile time rust features (similar to unstable features in rust compiler): the reason is to try to make smaller PRs which could land faster in master. The last stage of work on the issue there will be stabilizing feature by removing compilation flag from the source code.

Design

We should run integration tests mocking up external services. Full integration between scylladb and vector-store should be done in scylladb repository tests. We need to mockup scylladb cql service and we should do this by mockuping internal api to db. We could create external service, but we don't have such service. Mockuping rust driver to scylla seems to be too big effort to develop.

There should be specific db actor which we could mockup by providing specific actor for our tests. The crate should export running service with an ability to provide own db actor.

PRs

Metadata

Metadata

Assignees

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