For starting new projetcs.
Uses https://github.com/google/googletest. You can build it easily following the readme in libs directory.
Configure your Qt that it puts the build files in builds.
The tool https://github.com/pioupus/qTestLibRunner might be useful to interpret the test output.