-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// All test files are included in the executable via the Glob in CMakeLists.txt | ||
|
||
#include "juce_gui_basics/juce_gui_basics.h" | ||
#include <catch2/catch_session.hpp> | ||
|
||
int main (int argc, char* argv[]) | ||
{ | ||
// This lets us use JUCE's MessageManager without leaking. | ||
// PluginProcessor might need this if you use the APVTS for example. | ||
// You'll also need it for tests that rely on juce::Graphics, juce::Timer, etc. | ||
// It's nicer DX when placed here vs. manually in Catch2 SECTIONs | ||
juce::ScopedJuceInitialiser_GUI gui; | ||
|
||
const int result = Catch::Session().run (argc, argv); | ||
|
||
return result; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// All test files are included in the executable via the Glob in CMakeLists.txt | ||
|
||
#include "juce_gui_basics/juce_gui_basics.h" | ||
#include <catch2/catch_session.hpp> | ||
|
||
int main (int argc, char* argv[]) | ||
{ | ||
// This lets us use JUCE's MessageManager without leaking. | ||
// PluginProcessor might need this if you use the APVTS for example. | ||
// You'll also need it for tests that rely on juce::Graphics, juce::Timer, etc. | ||
// It's nicer DX when placed here vs. manually in Catch2 SECTIONs | ||
juce::ScopedJuceInitialiser_GUI gui; | ||
|
||
const int result = Catch::Session().run (argc, argv); | ||
|
||
return result; | ||
} | ||
#include <catch2/catch_test_macros.hpp> |