Skip to content

Is there any way to run only one (or several) cpp unit tests? #35290

Discussion options

You must be logged in to vote

Milvus cpp code is in this directory: /internal/core

Run this command:
make build-cpp-with-unittest

You will see a subdirectory generated: /internal/core/output/unittest with some binary files, such as "all_tests"

Run this binary with gtest filter.
For example, I want to run a single test case "NormalDistributionTest":
./internal/core/output/unittest/all_tests --gtest_filter='SegmentCoreTest.NormalDistributionTest'

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@liorf95
Comment options

Answer selected by liorf95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants