Files
SceneSwitcher/tests/test-main.cpp
WarmUpTill 60e5475642 Add widget tests for macro tree
Safeguard for rework to support nested groups.
Two things to change with rework:
* Dropping onto a collapsed group appends instead of prepending
* Group running state is not updated right away when there is a
  collapsed group above it for some reason
2026-10-25 12:03:46 +01:00

21 lines
535 B
C++

#define CATCH_CONFIG_RUNNER
#include "catch.hpp"
#include <QApplication>
#include <iostream>
int main(int argc, char *argv[])
{
// The OBS Qt deps do not ship the offscreen platform plugin on all
// platforms, so it is only used as a fallback.
if (qEnvironmentVariableIsEmpty("QT_QPA_PLATFORM")) {
qputenv("QT_QPA_PLATFORM", "minimal;offscreen");
}
QApplication app(argc, argv);
std::cout << "Using Qt platform \""
<< QGuiApplication::platformName().toStdString() << "\"\n";
return Catch::Session().run(argc, argv);
}