Skip to content

validator/tests: add test_ prefix to all tests#247

Draft
QuerthDP wants to merge 3 commits intoscylladb:masterfrom
QuerthDP:rename-tests
Draft

validator/tests: add test_ prefix to all tests#247
QuerthDP wants to merge 3 commits intoscylladb:masterfrom
QuerthDP:rename-tests

Conversation

@QuerthDP
Copy link
Member

We need to be able to simply differ the test cases from the utility
functions implemented in a test file.
This patch introduces a conversion that each test should be named
with the test_ prefix.
The test name should be the same as test function name but without
the test_ prefix, as this would duplicate the test keywords in logs.

From this commit, let's keep the conversion for all future tests.

Since the change we may create the indexes with different than default
vector index parameters like e.g. 'similarity_function'.
@QuerthDP QuerthDP requested a review from knowack1 September 23, 2025 14:02
@QuerthDP QuerthDP changed the title validator/tests: add test_ prefix to all tests validator/tests: add test_ prefix to all tests Sep 23, 2025
@QuerthDP
Copy link
Member Author

Will mark this as ready after #241 is merged.

@knowack1
Copy link
Collaborator

I like this change, but let's @ewienik do the final statement.

@knowack1 knowack1 requested a review from ewienik September 23, 2025 14:05
Add tests to validate the results of vector_similarity() function.

Refs: scylladb/scylladb#25993
We need to be able to simply differ the test cases from the utility
functions implemented in a test file.
This patch introduces a conversion that each test should be named
with the `test_` prefix.
The test name should be the same as test function name but without
the `test_` prefix, as this would duplicate the test keywords in logs.

From this commit, let's keep the conversion for all future tests.
@QuerthDP
Copy link
Member Author

Changelog:

@ewienik
Copy link
Collaborator

ewienik commented Oct 14, 2025

I like this change, but let's @ewienik do the final statement.
I don't see strong technical cons. We'd introduce a macro for automatically assign tests into test case, then we wouldn't need the additional test_ prefix. For now if you think it is better to have the prefix, then we should introduce this fix.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants