This is a collection of test examples made for my talk, "Lessons Learned From a Year of Unit Testing Audio Code" that I presented as part of ADC'20. They are meant to demonstrate the application of TDD to DSP development, and the verification of correct behavior of simple musical DSP processors.
All of the examples require Catch2 to be installed as well as a copy of JUCE. The tests also use my units library as a submodule, which requires you to run git submodule update --init --recursive
after pulling the repo to initialize.
You can build the tests by making a build directory and calling cmake "THIS_DIRECTORY" -D"JUCE_PATH"
, where THIS_DIRECTORY
is the directory of the repo, and JUCE_PATH
is the path to your JUCE folder. It is a good idea to make sure the build directory is not in one of the source code directories of this project.
After building the tests (You can specify different build systems with the -G
flag in cmake), you can then run the tests by calling ./TestExamples
from your build directory.