File tree 2 files changed +35
-0
lines changed
2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ // All test files are included in the executable via the Glob in CMakeLists.txt
2
+
3
+ #include " juce_gui_basics/juce_gui_basics.h"
4
+ #include < catch2/catch_session.hpp>
5
+
6
+ int main (int argc, char * argv[])
7
+ {
8
+ // This lets us use JUCE's MessageManager without leaking.
9
+ // PluginProcessor might need this if you use the APVTS for example.
10
+ // You'll also need it for tests that rely on juce::Graphics, juce::Timer, etc.
11
+ // It's nicer DX when placed here vs. manually in Catch2 SECTIONs
12
+ juce::ScopedJuceInitialiser_GUI gui;
13
+
14
+ const int result = Catch::Session ().run (argc, argv);
15
+
16
+ return result;
17
+ }
Original file line number Diff line number Diff line change
1
+ // All test files are included in the executable via the Glob in CMakeLists.txt
2
+
3
+ #include " juce_gui_basics/juce_gui_basics.h"
4
+ #include < catch2/catch_session.hpp>
5
+
6
+ int main (int argc, char * argv[])
7
+ {
8
+ // This lets us use JUCE's MessageManager without leaking.
9
+ // PluginProcessor might need this if you use the APVTS for example.
10
+ // You'll also need it for tests that rely on juce::Graphics, juce::Timer, etc.
11
+ // It's nicer DX when placed here vs. manually in Catch2 SECTIONs
12
+ juce::ScopedJuceInitialiser_GUI gui;
13
+
14
+ const int result = Catch::Session ().run (argc, argv);
15
+
16
+ return result;
17
+ }
18
+ #include < catch2/catch_test_macros.hpp>
You can’t perform that action at this time.
0 commit comments