mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-09-17 11:37:10 +03:00
26 lines
610 B
C++
26 lines
610 B
C++
// SPDX-FileCopyrightText: 2022 Mikhail Zolotukhin <mail@gikari.com>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#define DOCTEST_CONFIG_IMPLEMENT
|
|
#include <doctest/doctest.h>
|
|
|
|
#include <QCoreApplication>
|
|
#include <QTimer>
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
// Init core application to be able to use Qt stuff
|
|
QCoreApplication app(argc, argv);
|
|
|
|
auto testRunner = [&]() {
|
|
doctest::Context context;
|
|
context.applyCommandLine(argc, argv);
|
|
app.exit(context.run());
|
|
};
|
|
|
|
QTimer::singleShot(0, &app, testRunner);
|
|
QTimer::singleShot(0, &app, SLOT(quit()));
|
|
|
|
return app.exec();
|
|
}
|