How to use Google Test with JUCE projects?

You would keep the code under test in its own juce module (a juce module gets built as a library) and then you can link your tests executable to that. Seee this post