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
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