-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature(structre): extract utils into seperate common module #1212
feature(structre): extract utils into seperate common module #1212
Conversation
269cf57
to
c3d3f71
Compare
Since there will be more folders in scylla/tests, not just integration tests, then we'll need to extract common logic need by all tests folders into seperate module (`common`) before moving forward. Signed-off-by: Dusan Malusev <dusan.malusev@scylladb.com>
c3d3f71
to
36518fc
Compare
|
@Lorak-mmk What do you think to set in pub(crate) use utils::*; so that every import in other modules can be #[path = "../common/mod.rs"]
mod utils; |
Are you sure you meant to paste this snippet? This is not an import statement. |
Yes, not an import statement, but needed for the tests, each integration test file in rust is compiled as separate crate and each directory is separate crate, to include common in depth-2 without creating module and |
Sorry, I'm not following :( What change would you like to make? Right now (because this PR was merged) integration tests can |
yes exactly, to unify the imports (mod), right now, integration-tests need just the utils, but as more tests are added, there will be more utils 100%, and if we change it to code I suggested, would unify the #[path = "../common/mod.rs"]
mod utils; exposing everything from utils, so that we dont have to change all the imports in integration-tests (backward compatible and at least for now, minize the number of conflicts - basically if i change
|
Can you please do the following:
This way they will have access to utils module without too many |
Since there will be more folders in scylla/tests, not just integration tests, then we'll need to extract common logic need by all tests folders into seperate module (
common
) before moving forward.Pre-review checklist
./docs/source/
.Fixes:
annotations to PR description.