I am trying to add my first unit test to an existing open source project. In particular, I added a new class called audio_manager:
src/audio/audio_manager.h src/audio/audio_manager.cc
I created the src / test directory structure that reflects the structure of the implementation files, and wrote my googletest tags:
src/test/audio/audio_manager.cc
Now I am trying to configure my Makefile.am to compile and run the unit test:
src/test/audio/Makefile.am
I copied Makefile.am with:
src/audio/Makefile.am
Does anyone have a simple recipe for me, or is it for the cryptic documentation for the machine for me? :)
c ++ unit-testing makefile automake googletest
Josh glover
source share