Unit test fixture requirements?

For the record:

If you want to use CATCH with JUCE, your testrunner.cpp should look like this:

[code]#define CATCH_CONFIG_RUNNER
#include “catch.hpp”
#include “…/JuceLibraryCode/JuceHeader.h”

int main(int argc, char* const argv[])
{
ScopedJuceInitialiser_GUI juce;
return Catch::Main(argc, argv);
}
[/code]
CATCH: https://github.com/philsquared/Catch/wiki

I expect this to also work with other test frameworks that add their own main() function.