A unit test framework is provided, with the goal that all (nontrivial) classes
will have unit tests. At the very least, each new class should have a
corresponding unit test file stubbed in, even if there aren’t any tests yet.

This invocation allows us to alter Google Test’s default behavior. For more on
the available flags type:

$ bin/<test_name> --help

Key among these flags are the ability to list tests (--gtest_list_tests)
and to run only select tests (--gtest_filter).

Note

If the PostgreSQL PointCloud plugin was enabled on the CMake command line
(with -DBUILD_PLUGIN_PGPOINTCLOUD=ON) then ctest will attempt to run
the pgpointcloud tests. And you will get PostgreSQL connection errors
if the libpq environment variables are not correctly set in your shell.
This is for example how you can run the pgpointcloud tests: