Skip to content
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

Refactor C++ unit tests to allow finer grained filtering #4533

Merged

Conversation

ChuckHastings
Copy link
Collaborator

Running all of the C++ unit tests can take a long time.

This PR splits the file-based tests into small versus large tests. The large tests (usually named file_large_test) can be skipped by setting the following environment variable:

export GTEST_FILTER="-*large*"

You can skip both the large tests and the benchmark tests with the following:

export GTEST_FILTER="-*benchmark*:*large*"

By default all tests will be run.

@ChuckHastings ChuckHastings self-assigned this Jul 11, 2024
@ChuckHastings ChuckHastings added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change and removed cuGraph labels Jul 11, 2024
@ChuckHastings ChuckHastings added this to the 24.08 milestone Jul 11, 2024
@ChuckHastings ChuckHastings marked this pull request as ready for review July 11, 2024 19:33
@ChuckHastings ChuckHastings requested a review from a team as a code owner July 11, 2024 19:33
Copy link
Contributor

@seunghwak seunghwak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the minor comment about the inconsistency, LGTM.

::testing::Values(cugraph::test::File_Usecase("test/datasets/karate.mtx"))));

INSTANTIATE_TEST_SUITE_P(
file_large_pass,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we using "file_large_test" above and "file_large_pass" here? Better be consistent?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated eigenvector centrality test names to match.

@ChuckHastings
Copy link
Collaborator Author

/merge

@rapids-bot rapids-bot bot merged commit 599a3bf into rapidsai:branch-24.08 Jul 18, 2024
132 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuGraph improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants