Skip to content

Reintroduce CMake run_tests target to build & run tests#1302

Merged
johnbartholomew merged 1 commit intogoogle:masterfrom
johnbartholomew:cmake-test-fixes
Mar 8, 2026
Merged

Reintroduce CMake run_tests target to build & run tests#1302
johnbartholomew merged 1 commit intogoogle:masterfrom
johnbartholomew:cmake-test-fixes

Conversation

@johnbartholomew
Copy link
Collaborator

The ctest command on its own doesn't build the tests, it only runs them. So to run tests you need to build first. It's not difficult to do this, but still nice to have a utility target that has right dependencies.

The README also mentions a run_tests target.

The ctest command on its own doesn't build the tests, it only runs them.
So to run tests you need to build first. It's not difficult to do this,
but still nice to have a utility target that has right dependencies.
@johnbartholomew johnbartholomew merged commit 9dfe1f5 into google:master Mar 8, 2026
16 checks passed
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.

1 participant